Skip to content

Update release-docker-hub.yml #2

Update release-docker-hub.yml

Update release-docker-hub.yml #2

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
build_push:
uses: zcash/.github/.github/workflows/build-and-push-docker-hub.yaml@main
needs: set_env
with:
image_name: zcash-explorer
image_tags: ${{ needs.set_env.outputs.tags }}
dockerfile: ./Dockerfile
context: ./
build-args: ""
secrets:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
dockerhub_registry: ${{ secrets.DOCKERHUB_REGISTRY }}