File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,26 @@ jobs:
4040 with :
4141 username : ${{ secrets.DOCKER_USERNAME }}
4242 password : ${{ secrets.DOCKER_PASSWORD }}
43+ - name : Set deployment variables
44+ run : |
45+ if [ "${GITHUB_REF}" == "refs/heads/master" ]; then
46+ echo "TAG_PREFIX=master-github" >> $GITHUB_ENV
47+ elif [[ "${GITHUB_REF}" == refs/heads/hotfix_v* ]]; then
48+ echo "TAG_PREFIX=hotfix-github" >> $GITHUB_ENV
49+ elif [[ "${GITHUB_REF}" == refs/heads/hotfix_staging_* ]]; then
50+ echo "TAG_PREFIX=hotfix-staging-github" >> $GITHUB_ENV
51+ fi
52+ - name : build & push images
53+ run : |
54+ export DOCKER_IMAGE_TAG="$TAG_PREFIX-latest-arm64"
55+ export DOCKER_TARGET_PLATFORMS=linux/arm64
56+ make build push=true
4357 - name : build & push images
4458 run : |
4559 export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)-arm64
4660 export DOCKER_TARGET_PLATFORMS=linux/arm64
4761 make build push=true
4862 - name : fuse images in the registry
4963 run : |
50- export DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)
51- make docker-image-fuse
64+ export DOCKER_IMAGE_TAG="$TAG_PREFIX-latest-arm64"
65+ make docker-image-fuse SUFFIX=arm64
Original file line number Diff line number Diff line change @@ -871,4 +871,4 @@ release-hotfix release-staging-hotfix: ## Helper to create a hotfix release in G
871871.PHONY : docker-image-fuse
872872docker-image-fuse :
873873 $(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 ) )
874+ docker buildx imagetools --tag $(DOCKER_REGISTRY ) /$(service ) :$(DOCKER_IMAGE_TAG ) $(DOCKER_REGISTRY ) /$(service ) :$(DOCKER_IMAGE_TAG ) -$( SUFFIX ) $(DOCKER_REGISTRY ) /$(service ) :$(DOCKER_IMAGE_TAG ) )
You can’t perform that action at this time.
0 commit comments