Skip to content

Commit

Permalink
Merge pull request zcash#6790 from zcash/docker-release-workflow
Browse files Browse the repository at this point in the history
Create GitHub Action Workflow for Docker Image Release to Docker Hub
  • Loading branch information
Yasser Isa authored Mar 20, 2024
2 parents 1922653 + 7931138 commit 6040cde
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release-docker-hub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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 }}
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: zcashd
image_tags: ${{ needs.set_env.outputs.tags }}
dockerfile: ./contrib/docker/Dockerfile
context: ./contrib/docker/
secrets:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
dockerhub_registry: ${{ secrets.DOCKERHUB_REGISTRY }}

0 comments on commit 6040cde

Please sign in to comment.