Skip to content

Commit

Permalink
fix version manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin committed Aug 8, 2024
1 parent 4a6c800 commit 418c5f2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,14 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Add version into docker image
id: add_version
run: |
echo "lago_version=${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.version }}" >> "$GITHUB_OUTPUT"
- name: Create version manifest and Push
run: |
docker manifest create \
getlago/api:${{ steps.build-amd-image.outputs.add_version.outputs.lago_version }} \
--amend getlago/api:${{ steps.build-amd-image.outputs.add_version.outputs.lago_version }}-amd64 \
--amend getlago/api:${{ steps.build-amd-image.outputs.add_version.outputs.lago_version }}-arm64
docker manifest push getlago/api:${{ steps.build-amd-image.outputs.add_version.outputs.lago_version }}
getlago/api:${{ steps.add_version.outputs.lago_version }} \
--amend getlago/api:${{ steps.add_version.outputs.lago_version }}-amd64 \
--amend getlago/api:${{ steps.add_version.outputs.lago_version }}-arm64
docker manifest push getlago/api:${{ steps.add_version.outputs.lago_version }}

0 comments on commit 418c5f2

Please sign in to comment.