Skip to content

feat: DEVOPS-46 actions updated to fix nodejs16 deprecation (#772) #569

feat: DEVOPS-46 actions updated to fix nodejs16 deprecation (#772)

feat: DEVOPS-46 actions updated to fix nodejs16 deprecation (#772) #569

Workflow file for this run

name: "CICD production"
on:
# On merged
push:
branches:
- main
# On released
release:
types: [published]
jobs:
build-docker:
permissions:
id-token: write
contents: write
runs-on: ubuntu-22.04
if: github.actor != 'dependabot[bot]'
name: "Deploy image"
strategy:
fail-fast: false
matrix:
application:
[
bluebell-playground,
eth-spout,
governance-api,
governance-snapshot,
multisig,
scilla-server,
zillion,
]
include:
- application: bluebell-playground
image_name: bluebell-playground
path: products/bluebell
tag_length: 8
tag_latest: false
- application: eth-spout
image_name: eth-spout
path: products/eth-spout
tag_length: 9
tag_latest: true
- application: governance-api
image_name: governance-api
path: products/governance-api
tag_length: 8
tag_latest: false
- application: governance-snapshot
image_name: governance-snapshot
path: products/governance-snapshot
tag_length: 8
tag_latest: false
- application: multisig
image_name: multisig
path: products/multisig
tag_length: 8
tag_latest: false
- application: scilla-server
image_name: scilla-server
path: products/scilla-server
tag_length: 8
tag_latest: false
- application: zillion
image_name: zillion
path: products/zillion
tag_length: 8
tag_latest: false
env:
DOCKER_DOMAIN: asia-docker.pkg.dev
REGISTRY: asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-public
steps:
- name: Checkout code
uses: actions/checkout@v6
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 - production
uses: Zilliqa/gh-actions-workflows/actions/ci-dockerized-app-build-push@v2
with:
context: ${{ matrix.path }}
push: true
tag: asia-docker.pkg.dev/prj-p-devops-services-tvwmrf63/zilliqa-public/${{ matrix.image_name }}:${{ github.ref_name }}
registry: asia-docker.pkg.dev
workload-identity-provider: "${{ secrets.GCP_PRD_GITHUB_WIF }}"
service-account: "${{ secrets.GCP_PRD_GITHUB_SA_DOCKER_REGISTRY }}"
cache-key: ${{ env.REGISTRY }}/${{ matrix.image_name }}-cache
build-args: |
DEPLOY_ENV=prd
VITE_ENV="PROD"