Skip to content

Commit

Permalink
feat: Release with docker image version (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolagospagopa authored Jul 5, 2024
1 parent f596260 commit 684a201
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Release action
id: release
uses: pagopa/eng-github-actions-iac-template/global/release-action@release-action-outputs #
uses: pagopa/eng-github-actions-iac-template/global/release-action@main #
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -34,27 +34,27 @@ jobs:
run: echo "No new release"


# - name: Log in to the Container registry
# id: docker_login
# if: steps.release.outputs.new_release_published == 'true'
# # from https://github.com/docker/login-action/commits/master
# uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - name: Build and push Docker image
# id: docker_build_push
# if: steps.release.outputs.new_release_published == 'true'
# # from https://github.com/docker/build-push-action/commits/master
# uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
# with:
# context: .
# push: true
# tags: |
# ghcr.io/${{ github.repository }}:latest
# ghcr.io/${{ github.repository }}:v${{ steps.release.outputs.new_release_version }}
# labels: |
# maintainer=https://pagopa.it
# org.opencontainers.image.source=https://github.com/${{ github.repository }}
- name: Log in to the Container registry
id: docker_login
if: steps.release.outputs.new_release_published == 'true'
# from https://github.com/docker/login-action/commits/master
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
id: docker_build_push
if: steps.release.outputs.new_release_published == 'true'
# from https://github.com/docker/build-push-action/commits/master
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:v${{ steps.release.outputs.new_release_version }}
labels: |
maintainer=https://pagopa.it
org.opencontainers.image.source=https://github.com/${{ github.repository }}
2 changes: 1 addition & 1 deletion force-release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
471755
0957

0 comments on commit 684a201

Please sign in to comment.