From bc309b62b085e67262e4b3c8a53c13f912365605 Mon Sep 17 00:00:00 2001 From: y4ssi <11613913+y4ssi@users.noreply.github.com> Date: Wed, 2 Oct 2024 08:06:05 -0600 Subject: [PATCH] Create CI - release-docker-hub.yaml (#18) --- .github/workflows/release-docker-hub.yaml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release-docker-hub.yaml diff --git a/.github/workflows/release-docker-hub.yaml b/.github/workflows/release-docker-hub.yaml new file mode 100644 index 00000000..df0780c9 --- /dev/null +++ b/.github/workflows/release-docker-hub.yaml @@ -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 }}