File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Push Docker Image to Docker Hub
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*.*.*"
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ set_env :
11
+ name : Create version tag
12
+ runs-on : ubuntu-latest
13
+ outputs :
14
+ tags : ${{ steps.version_step.outputs.tags }}
15
+ zcash_version : ${{ steps.version_step.outputs.zcash_version }}
16
+ steps :
17
+ - id : version_step
18
+ run : |
19
+ echo "tags=latest,${{ github.ref_name }},${{ github.sha }}" >> $GITHUB_OUTPUT
20
+
21
+ build_push :
22
+ uses : zcash/.github/.github/workflows/build-and-push-docker-hub.yaml@main
23
+ needs : set_env
24
+ with :
25
+ image_name : zcash-seeder
26
+ image_tags : ${{ needs.set_env.outputs.tags }}
27
+ dockerfile : ./Dockerfile
28
+ context : ./
29
+ build-args : " "
30
+ secrets :
31
+ dockerhub_username : ${{ secrets.DOCKERHUB_USERNAME }}
32
+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
33
+ dockerhub_registry : ${{ secrets.DOCKERHUB_REGISTRY }}
You can’t perform that action at this time.
0 commit comments