Skip to content

Commit

Permalink
test package build
Browse files Browse the repository at this point in the history
  • Loading branch information
ripexz committed Jan 18, 2024
1 parent 72bb36d commit 9cf42f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ jobs:
name: Build and push image
runs-on: ubuntu-latest
needs: [lint, test]
if: startsWith(github.event.ref, 'refs/tags/v')
if: startsWith(github.event.ref, 'refs/heads/docker')
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 9cf42f9

Please sign in to comment.