Skip to content

Deploy Token Incentive contracts on zEVM #132

Deploy Token Incentive contracts on zEVM

Deploy Token Incentive contracts on zEVM #132

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
GITHUB_REF_NAME: "$(echo ${{ github.ref_name }} | tr '//' '-')"
jobs:
build-docker:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- name: setup-git-credentials
uses: de-vri-es/[email protected]
with:
credentials: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6
- name: Git Hash
run: |
echo "GIT_HASH=$(git rev-parse --short HEAD)" >> ${GITHUB_ENV}
echo "WORKSPACE_DIR=$(pwd)" >> ${GITHUB_ENV}
- name: set-branch-name
uses: ./.github/actions/set-branch-name
with:
github_ref: "${{github.ref}}"
github_event: "${{ github.event_name }}"
github_head_ref: "${{ github.event.pull_request.head.ref }}"
github_commit_sha: "${{ env.GIT_HASH }}"
current_branch_name: "${{ steps.branch-name.outputs.current_branch }}"
- name: Build, tag, and push docker images
uses: ./.github/actions/build-docker-images
with:
DOCKER_FILENAME: Dockerfile
REPOSITORY_NAME: zetachain
IMAGE_TAG: ${{ env.TAG_NAME }}
GHCR_USERNAME: ${{ secrets.PAT_GITHUB_SERVICE_ACCT_USERNAME }}
GHCR_TOKEN: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}