File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 99 - requirements.txt
1010 - Dockerfile
1111 - .github/workflows/docker.yml
12+ pull_request :
13+ paths :
14+ - requirements.txt
15+ - Dockerfile
16+ - .github/workflows/docker.yml
1217
1318permissions :
1419 contents : read
@@ -34,11 +39,13 @@ jobs:
3439 uses : docker/setup-buildx-action@v3
3540 -
3641 name : Login to DockerHub
42+ if : github.event_name != 'pull_request'
3743 uses : docker/login-action@v3
3844 with :
3945 username : ${{ secrets.DOCKER_USER }}
4046 password : ${{ secrets.DOCKER_PASSWORD }}
4147 - name : Login to GitHub Container Registry
48+ if : github.event_name != 'pull_request'
4249 uses : docker/login-action@v3
4350 with :
4451 registry : ghcr.io
5057 uses : docker/build-push-action@v6
5158 with :
5259 context : .
53- push : true
60+ push : ${{ github.event_name != 'pull_request' }}
5461 platforms : linux/amd64,linux/arm64
5562 tags : |
5663 esphome/esphome-docs:latest
You can’t perform that action at this time.
0 commit comments