Skip to content

Commit badc322

Browse files
committed
workflow is in
1 parent 70cd48b commit badc322

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/ci-arm-build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI ARM64 Build and Push
2+
3+
on:
4+
# push:
5+
# branches:
6+
# - "master"
7+
# tags-ignore:
8+
# - "*"
9+
# pull_request:
10+
# branches-ignore:
11+
# - "*"
12+
workflow_dispatch:
13+
14+
jobs:
15+
build-and-push-arm64:
16+
if: github.ref == 'refs/heads/master'
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
os: [ubuntu-22.04]
21+
python: ["3.11"]
22+
env:
23+
# secrets can be set in settings/secrets on github
24+
DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: setup QEMU
28+
uses: docker/setup-qemu-action@v3
29+
- name: setup docker buildx
30+
id: buildx
31+
uses: docker/setup-buildx-action@v3
32+
with:
33+
driver: docker-container
34+
- name: expose github runtime for buildx
35+
uses: crazy-max/ghaction-github-runtime@v3
36+
- name: show system environs
37+
run: ./ci/helpers/show_system_versions.bash
38+
- name: login to Dockerhub
39+
uses: docker/login-action@v2
40+
with:
41+
username: ${{ secrets.DOCKER_USERNAME }}
42+
password: ${{ secrets.DOCKER_PASSWORD }}
43+
- name: build & push images
44+
run: |
45+
export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)-arm64
46+
export DOCKER_TARGET_PLATFORMS=linux/arm64
47+
make build push=true
48+
- name: fuse images in the registry
49+
run: |
50+
export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)
51+
make docker-image-fuse

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,3 +867,8 @@ release-staging release-prod: .check-on-master-branch ## Helper to create a sta
867867
.PHONY: release-hotfix release-staging-hotfix
868868
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)
869869
$(create_github_release_url)
870+
871+
.PHONY: docker-image-fuse
872+
docker-image-fuse:
873+
$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
874+
docker buildx imagetools --tag $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG) $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG)-arm64 $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG))

0 commit comments

Comments
 (0)