Skip to content

Commit

Permalink
ci(release): push image after release
Browse files Browse the repository at this point in the history
Signed-off-by: Aljoscha Poertner <aljoscha.poertner@hellmann.com>
  • Loading branch information
aljoshare committed Jul 4, 2023
1 parent 0c5ccd5 commit 50a6e15
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,37 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: "target/release/runo,target/release/checksum.txt"
bodyFile: "CHANGELOG.md"
bodyFile: "CHANGELOG.md"
image:
name: Build and push image
runs-on: ubuntu-latest
needs: release
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Debug
run: |
echo "github.ref -> {{ github.ref }}"
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set metadata
id: metadata
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
- name: Build and push image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}

0 comments on commit 50a6e15

Please sign in to comment.