From b8e21de4393aa4b64bed8b08b007af9bf653233e Mon Sep 17 00:00:00 2001 From: y4ssi <11613913+y4ssi@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:13:45 -0600 Subject: [PATCH] docker release --- .github/workflows/release-docker-hub.yml | 33 ++++++++++++++++++++++++ .github/workflows/semgrep.yml | 16 ------------ 2 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/release-docker-hub.yml delete mode 100644 .github/workflows/semgrep.yml 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 }}