Skip to content

Commit

Permalink
Merge pull request #50 from geniusyield/47-ci-ci-build-fails-in-forks-2
Browse files Browse the repository at this point in the history
[CI] CI build fails in forks #47
  • Loading branch information
4TT1L4 authored Nov 6, 2023
2 parents d9dbc9a + e8146d9 commit ec406f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: docker-metadata
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
- name: ${{ github.ref == 'refs/heads/main' && 'Build and Push Docker image' || 'Build Docker image' }}
uses: docker/build-push-action@v5
with:
push: ${{ github.ref == 'refs/heads/main'}}
tags: ghcr.io/${{ github.repository }}:latest
tags: ${{ steps.docker-metadata.outputs.tags }}
labels: ${{ steps.docker-metadata.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit ec406f8

Please sign in to comment.