Skip to content

Commit

Permalink
fix image build
Browse files Browse the repository at this point in the history
  • Loading branch information
ripexz committed Jan 18, 2024
1 parent 72bb36d commit 55c2349
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
runs-on: ubuntu-latest
needs: [lint, test]
if: startsWith(github.event.ref, 'refs/tags/v')
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:

- name: Check out the repo
Expand All @@ -60,15 +63,15 @@ jobs:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: teamwork/kommentaar
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 55c2349

Please sign in to comment.