We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 788e26a commit 2b9bcbbCopy full SHA for 2b9bcbb
1 file changed
.github/workflows/docker.yml
@@ -3,8 +3,9 @@ name: "Docker"
3
on:
4
workflow_dispatch:
5
6
+ pull_request:
7
+
8
push:
- branches: ["master"]
9
10
schedule:
11
- cron: "0 8 * * 1"
@@ -74,7 +75,7 @@ jobs:
74
75
uses: docker/setup-buildx-action@v3
76
77
- name: Login to DockerHub
- if: github.ref == 'refs/heads/master'
78
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
79
uses: docker/login-action@v3
80
with:
81
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -104,7 +105,7 @@ jobs:
104
105
docker stop $CONTAINER_ID
106
107
- name: Build and push to registry
108
109
uses: docker/build-push-action@v6
110
111
context: ${{ matrix.context }}
0 commit comments