Skip to content

Commit

Permalink
Create CI - release-docker-hub.yaml (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
y4ssi authored Oct 2, 2024
1 parent 996f05f commit bc309b6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-docker-hub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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-seeder
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 }}

0 comments on commit bc309b6

Please sign in to comment.