cleanup debug and fix check voter address (#110) #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DockerHub Prod Build | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
DOCKER_REPO: openlaw/snapshot-hub | |
IMAGE_NAME: openlaw/snapshot-hub | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check available environment variables | |
uses: actions/checkout@v2 | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v2.x | |
- name: Build docker image and tag | |
uses: docker/build-push-action@v1 | |
env: | |
DOCKER_BUILDKIT: 1 | |
with: | |
username: ${{ secrets.PUB_REPO_DOCKERHUB_USERNAME }} | |
password: ${{ secrets.PUB_REPO_DOCKERHUB_ACCESS_TOKEN }} | |
repository: ${{ env.DOCKER_REPO }} | |
# Automatically tags the built image with the git short SHA prefixed with the branch name, e.g: vX.Y.Z, latest | |
tags: ${{ env.GITHUB_REF_SLUG }}, latest | |
# Only push image on git v* tag | |
push: ${{ startsWith(github.ref, 'refs/tags/') }} |