Skip to content

Commit

Permalink
possibly good
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Dec 20, 2024
1 parent 046861d commit f482ed4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/ci-arm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,26 @@ jobs:
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
run: |
export DOCKER_IMAGE_TAG="$TAG_PREFIX-latest-arm64"
export DOCKER_TARGET_PLATFORMS=linux/arm64
make build push=true
- 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
export DOCKER_IMAGE_TAG="$TAG_PREFIX-latest-arm64"
make docker-image-fuse SUFFIX=arm64
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -871,4 +871,4 @@ release-hotfix release-staging-hotfix: ## Helper to create a hotfix release in G
.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))
docker buildx imagetools --tag $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG) $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG)-$(SUFFIX) $(DOCKER_REGISTRY)/$(service):$(DOCKER_IMAGE_TAG))

0 comments on commit f482ed4

Please sign in to comment.