File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed
Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 11name : Build Docker image
22
3- on : [push]
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+ tags :
8+ - " v*"
9+
10+ pull_request :
11+ branches :
12+ - " main"
413
514jobs :
615 docker :
1221 - name : Set up Docker Buildx
1322 uses : docker/setup-buildx-action@v1
1423
24+ - name : Docker meta
25+ id : meta
26+ uses : docker/metadata-action@v3
27+ with :
28+ images : ${{ secrets.DOCKERHUB_USERNAME }}/pyth-client-py
29+
1530 - name : Login to DockerHub
1631 uses : docker/login-action@v1
1732 with :
2338 uses : docker/build-push-action@v2
2439 with :
2540 platforms : linux/amd64
26- push : true
27- tags : ${{ secrets.DOCKERHUB_USERNAME }}/pyth-client-py:latest
41+ push : ${{ github.event_name != 'pull_request' }}
42+ tags : ${{ steps.meta.outputs.tags }}
43+ labels : ${{ steps.meta.outputs.labels }}
2844
2945 - name : Image digest
3046 run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments