Skip to content

Commit bc309b6

Browse files
authored
Create CI - release-docker-hub.yaml (#18)
1 parent 996f05f commit bc309b6

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 }}

0 commit comments

Comments
 (0)