-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,51 @@ | ||
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.ref == 'refs/heads/master' | ||
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 | ||
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: build & push images | ||
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 | ||
run: | | ||
export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash) | ||
make docker-image-fuse |
This file contains 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