forked from zcash/zcash
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.07 KB
/
release-docker-hub.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build and Push Docker Image to Docker Hub
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
jobs:
set_env:
name: Create version tag
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.version_step.outputs.tags }}
zcash_version: ${{ steps.version_step.outputs.zcash_version }}
steps:
- id: version_step
run: |
echo "tags=latest,${{ github.ref_name }},${{ github.sha }}" >> $GITHUB_OUTPUT
echo "zcash_version=$(echo ${{ github.ref_name }} | sed 's/v//g')" >> $GITHUB_OUTPUT
build_push:
uses: zcash/.github/.github/workflows/build-and-push-docker-hub.yaml@main
needs: set_env
with:
image_name: zcashd
image_tags: ${{ needs.set_env.outputs.tags }}
dockerfile: ./contrib/docker/Dockerfile
context: ./contrib/docker/
build-args: |
ZCASH_VERSION=${{ needs.set_env.outputs.zcash_version }}
secrets:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
dockerhub_registry: ${{ secrets.DOCKERHUB_REGISTRY }}