Skip to content

v0.0.2

v0.0.2 #2

Workflow file for this run

name: "CICD production"
on:
# On release
release:
types: [published]
jobs:
build:
permissions:
id-token: write
contents: write
runs-on: ubuntu-24.04
if: github.actor != 'dependabot[bot]'
name: "Build image"
strategy:
fail-fast: false
matrix:
application: [ethstats-server]
include:
- application: ethstats-server
image_name: ethstats-server
file: Dockerfile
context: "."
tag_length: 8
tag_latest: true
env:
REGISTRY: asia-docker.pkg.dev
REPOSITORY: asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-public
steps:
- name: Checkout code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
with:
submodules: recursive
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
- name: Docker build and push
uses: Zilliqa/gh-actions-workflows/actions/ci-dockerized-app-build-push@v2
with:
file: ${{ matrix.file }}
context: ${{ matrix.context }}
push: true
tag: ${{ env.REPOSITORY }}/${{ matrix.image_name }}:${{ github.ref_name }}
tag-length: 8
tag-latest: ${{ matrix.tag_latest }}
registry: ${{ env.REGISTRY }}
workload-identity-provider: "${{ secrets.GCP_PRD_GITHUB_WIF }}"
service-account: "${{ secrets.GCP_PRD_GITHUB_SA_DOCKER_REGISTRY }}"
cache-key: ${{ env.REPOSITORY }}/${{ matrix.image_name }}-cache
secrets: |
"TOKEN=${{ secrets.GH_PAT }}"