Skip to content

Commit

Permalink
workflow is in
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Dec 20, 2024
1 parent 8a9bab4 commit 5e195e4
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci-arm-build.yml
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
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -867,3 +867,8 @@ release-staging release-prod: .check-on-master-branch ## Helper to create a sta
.PHONY: release-hotfix release-staging-hotfix
release-hotfix release-staging-hotfix: ## Helper to create a hotfix release in Github (usage: make release-hotfix version=1.2.4 git_sha=optional or make release-staging-hotfix name=Sprint version=2)
$(create_github_release_url)

.PHONY: docker-image-fuse
docker-image-fuse:
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
docker buildx imagetools --tag $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG) $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG)-arm64 $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG))

0 comments on commit 5e195e4

Please sign in to comment.