File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : docker
22
3- on :
4- push :
5- tags :
6- - ' *'
3+ on : [push, workflow_dispatch]
74
85jobs :
96 build :
@@ -21,15 +18,25 @@ jobs:
2118
2219 - name : Login to DockerHub
2320 uses : docker/login-action@v2
21+ if : github.ref == 'refs/heads/master' && github.repository == 'kool-dev/pdf'
2422 with :
2523 username : ${{ secrets.DOCKER_USERNAME }}
2624 password : ${{ secrets.DOCKER_PASSWORD }}
2725
2826 - uses : olegtarasov/get-tag@v2.1
2927 id : tagName
3028
29+ - name : Build and export
30+ uses : docker/build-push-action@v3
31+ with :
32+ load : true
33+ tags : |
34+ kooldev/pdf:${{ steps.tagName.outputs.tag }}
35+ kooldev/pdf:1.0
36+
3137 - name : Build and push image
3238 uses : docker/build-push-action@v3
39+ if : github.ref == 'refs/heads/master' && github.repository == 'kool-dev/pdf'
3340 with :
3441 platforms : linux/amd64,linux/arm64
3542 push : true
You can’t perform that action at this time.
0 commit comments