Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ripexz committed Jan 18, 2024
1 parent 55c2349 commit d1deefb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/go.yml
Expand Up @@ -51,14 +51,15 @@ 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
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand All @@ -77,7 +78,11 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit d1deefb

Please sign in to comment.