Skip to content

Commit

Permalink
Update build-and-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
APoniatowski authored Aug 15, 2024
1 parent ea55038 commit 1288795
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,29 @@ jobs:
name: ZEHD v${{ needs.build.outputs.version }}
bodyFile: CHANGELOG
allowUpdates: true

docker:
needs: [build, release]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ needs.build.outputs.version }}

0 comments on commit 1288795

Please sign in to comment.