diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index c729d87..d43d9b3 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,14 +6,11 @@ name: Docker # documentation. on: - schedule: - - cron: '42 9 * * *' push: branches: [ "master" ] # Publish semver tags as releases. tags: [ 'v*.*.*' ] - pull_request: - branches: [ "master" ] + env: # Use docker.io for Docker Hub if empty @@ -75,7 +72,7 @@ jobs: id: build-and-push uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 with: - context: . + context: src push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}