File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 uses : docker/setup-buildx-action@v3
2828
2929 - name : Log in to GitHub Container Registry
30- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
30+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch') || github.event_name == 'release' }}
3131 uses : docker/login-action@v2
3232 with :
3333 registry : ghcr.io
@@ -78,11 +78,11 @@ jobs:
7878 platforms : linux/amd64,linux/arm64
7979
8080 - name : Set up cosign
81- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
81+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch') || github.event_name == 'release' }}
8282 uses : sigstore/cosign-installer@v3
8383
8484 - name : Sign the container image with cosign
85- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
85+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch') || github.event_name == 'release' }}
8686 run : |
8787 cosign sign --yes ghcr.io/obeone/crawler-to-md@${DIGEST}
8888 cosign sign --yes docker.io/obeoneorg/crawler-to-md@${DIGEST}
9191 DIGEST : ${{ steps.docker_build.outputs.digest }}
9292
9393 - name : Update Docker Hub description
94- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
94+ if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch') || github.event_name == 'release' }}
9595 uses : peter-evans/dockerhub-description@v4
9696 with :
9797 username : ${{ secrets.DOCKERHUB_USERNAME }}
You can’t perform that action at this time.
0 commit comments