Skip to content

Commit

Permalink
Merge pull request #1 from Electric-Coin-Company/cicd
Browse files Browse the repository at this point in the history
docker release
  • Loading branch information
y4ssi authored Oct 15, 2024
2 parents 0b01b8f + b8e21de commit c56bb8a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 16 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-docker-hub.yml
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: Electric-Coin-Company/.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 }}
16 changes: 0 additions & 16 deletions .github/workflows/semgrep.yml

This file was deleted.

0 comments on commit c56bb8a

Please sign in to comment.