Skip to content

Commit

Permalink
Merge image deployment for amd64/arm64 into a single step
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreroman committed Jan 20, 2025
1 parent 88ae21d commit e3be1b5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,9 @@ jobs:
- name: Build image
run: |
./mvnw -Pnative -DskipTests -B spring-boot:build-image
- name: Deploy linux/arm64 image
if: ${{ matrix.os == 'ubuntu-24.04-arm' }}
- name: Deploy image
run: |
CNB_TAG=linux-arm64
CNB_IMAGE=${{ needs.test-app.outputs.imageName }}
docker tag $CNB_IMAGE:latest $CNB_IMAGE:$CNB_TAG
docker push $CNB_IMAGE:$CNB_TAG
- name: Deploy linux/amd64 image
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
CNB_TAG=linux-amd64
CNB_TAG="linux/`dpkg --print-architecture`"
CNB_IMAGE=${{ needs.test-app.outputs.imageName }}
docker tag $CNB_IMAGE:latest $CNB_IMAGE:$CNB_TAG
docker push $CNB_IMAGE:$CNB_TAG
Expand Down

0 comments on commit e3be1b5

Please sign in to comment.