diff --git a/.github/workflows/release-docker-hub.yml b/.github/workflows/release-docker-hub.yml new file mode 100644 index 0000000..c069dd7 --- /dev/null +++ b/.github/workflows/release-docker-hub.yml @@ -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 }} \ No newline at end of file diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml deleted file mode 100644 index ca54ccb..0000000 --- a/.github/workflows/semgrep.yml +++ /dev/null @@ -1,16 +0,0 @@ -on: - pull_request: {} - push: - branches: - - main - - master -name: Semgrep -jobs: - semgrep: - name: Scan - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: returntocorp/semgrep-action@v1 - with: - publishToken: ${{ secrets.SEMGREP_APP_TOKEN }}