-
Notifications
You must be signed in to change notification settings - Fork 32
✨Infra: Build for arm64 #6984
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
Merged
Merged
✨Infra: Build for arm64 #6984
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2edb2af
install rclone base on architecture
sanderegg fef8c9f
install right architecture
sanderegg 4938753
build for ARM64
sanderegg ce037fe
add QEMU
sanderegg a2dbdf7
shellcheck v0.10
sanderegg 4927197
remove hcl file
sanderegg fee6b30
revert
sanderegg 6e48db4
ensure tagging is done correctly
sanderegg 3f0eb0b
workflow is in
sanderegg 6e48949
revert
sanderegg 31e8435
possibly good
sanderegg 49898f1
possibly good
sanderegg 00356ac
possibly good
sanderegg fea7d2d
it should work
sanderegg 9046009
first step
sanderegg 06c9d8b
revert unneeded changes
sanderegg 738bc7d
only overwrite docker registry and tag on push
sanderegg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| name: CI ARM64 Build and Push | ||
|
|
||
| on: | ||
| # push: | ||
| # branches: | ||
| # - "master" | ||
| # tags-ignore: | ||
| # - "*" | ||
| # pull_request: | ||
| # branches-ignore: | ||
| # - "*" | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build-and-push-arm64: | ||
| if: github.event_name == 'workflow_dispatch' | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-22.04] | ||
| python: ["3.11"] | ||
| env: | ||
| # secrets can be set in settings/secrets on github | ||
| DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: setup QEMU | ||
sanderegg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| uses: docker/setup-qemu-action@v3 | ||
| - name: setup docker buildx | ||
| id: buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| with: | ||
| driver: docker-container | ||
| - name: expose github runtime for buildx | ||
| uses: crazy-max/ghaction-github-runtime@v3 | ||
| - name: show system environs | ||
| run: ./ci/helpers/show_system_versions.bash | ||
| - name: login to Dockerhub | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| username: ${{ secrets.DOCKER_USERNAME }} | ||
| password: ${{ secrets.DOCKER_PASSWORD }} | ||
| - name: Set deployment variables | ||
| run: | | ||
| if [ "${GITHUB_REF}" == "refs/heads/master" ]; then | ||
| echo "TAG_PREFIX=master-github" >> $GITHUB_ENV | ||
| elif [[ "${GITHUB_REF}" == refs/heads/hotfix_v* ]]; then | ||
| echo "TAG_PREFIX=hotfix-github" >> $GITHUB_ENV | ||
| elif [[ "${GITHUB_REF}" == refs/heads/hotfix_staging_* ]]; then | ||
| echo "TAG_PREFIX=hotfix-staging-github" >> $GITHUB_ENV | ||
| fi | ||
| - name: build & push images for latest tag | ||
| run: | | ||
| export DOCKER_IMAGE_TAG="$TAG_PREFIX-latest-arm64" | ||
| export DOCKER_TARGET_PLATFORMS=linux/arm64 | ||
| make build push=true | ||
| - name: build & push images for specific tag | ||
| run: | | ||
| export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)-arm64 | ||
| export DOCKER_TARGET_PLATFORMS=linux/arm64 | ||
| make build push=true | ||
| - name: fuse images in the registry for latest tag | ||
sanderegg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| run: | | ||
| export DOCKER_IMAGE_TAG="$TAG_PREFIX-latest" | ||
| make docker-image-fuse SUFFIX=arm64 | ||
| - name: set git tag | ||
| run: echo "GIT_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.