Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#14): import gitlab stuff #18

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

JacobCoffee
Copy link
Member

@JacobCoffee JacobCoffee commented Oct 10, 2024

Moves Gitlab files here

Partially resolves #14

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we will need it, but maybe through manual dispatch? Let's discuss this separately.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW the docs on GL container registry are here: https://docs.gitlab.com/ee/user/packages/container_registry/index.html

I don't know how you'd upload images built on GitHub to this though.

build:
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v4 # I dont think this is needed given git context defaults in build-push-action?
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should verify

cpython-ci/LICENSE.txt Outdated Show resolved Hide resolved
# Using the image

We are publishing this Docker image on
[GitLab](https://gitlab.com/python-devs/ci-images/container_registry).
Copy link
Member Author

@JacobCoffee JacobCoffee Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this and below needs update for GH

@JacobCoffee JacobCoffee changed the title feat: import gitlab stuff feat(#14): import gitlab stuff Oct 10, 2024
@JacobCoffee
Copy link
Member Author

changing get-pythons.sh to -j16 goes brrr
[+] Building 372.5s (16/16) FINISHED

jobs:
env:
GITHUB_REGISTRY: ghcr.io
GITLAB_REGISTRY: ${{ secrets.GITLAB_REGISTRY }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@corona10
Copy link
Member

cc @warsaw

Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you like to update CODEOWENER file to be you, @warsaw and me?

docker run ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-test mypy --version
docker run ${{ env.GITHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-test pipx --version

release:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh let's separate the publish process from now on.
Just verify and test will be enough.


jobs:
env:
GITHUB_REGISTRY: ghcr.io
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take a look at how we verify autoconf file at Github Action.
I wish to use similar approach at CI level.
https://github.com/python/cpython-devcontainers/blob/main/.github/workflows/ci.yml

@warsaw
Copy link
Member

warsaw commented Oct 11, 2024

Would you like to update CODEOWENER file to be you, @warsaw and me?

Asking also for @maxking who is a core dev and also worked on the GitLab container stuff.

@maxking
Copy link

maxking commented Oct 11, 2024

I don't mind helping out with container stuff since I maintain it for mailman anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Gitlab CI repo to here
4 participants