Skip to content

Commit

Permalink
fix workflow/release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mankianer committed Aug 14, 2024
1 parent b539acf commit d1ce076
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
run: |
echo "fullImageName=${{env.repoImageName}}:${{env.version}}" >> $GITHUB_ENV
- name: Set up image names 2
run: |
echo "fullImageNameARM=${{env.repoImageName}}:arm64-${{env.version}}" >> $GITHUB_ENV
echo "fullImageNameAMD=${{env.repoImageName}}:amd64-${{env.version}}" >> $GITHUB_ENV
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
Expand All @@ -49,15 +44,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Image
run: |
docker buildx build . -t ${{env.fullImageNameARM}} --push --platform linux/arm64
docker buildx build . -t ${{env.fullImageNameAMD}} --push --platform linux/amd64
- name: Create Version Manifest
run: |
docker manifest create ${{env.fullImageName}} ${{env.fullImageNameARM}} ${{env.fullImageNameAMD}}
docker manifest push ${{env.fullImageName}}
- name: tag Manifest to latest
run: |
docker manifest tag ${{env.fullImageName}} ${{env.repoImageName}}:latest
docker manifest push ${{env.repoImageName}}:latest
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{env.fullImageName}}

0 comments on commit d1ce076

Please sign in to comment.