Skip to content

Build nesachain

Build nesachain #11

Workflow file for this run

name: STG Deploy
env:
ENV: stg
PROJECT: nesa
APPLICATION: docker
SHARED_REPO_NAME: nesaorg/devops-shared-library
SHARED_REPO_NAME_SSH: [email protected]:nesaorg/devops-shared-library.git
SHARED_REPO_BRANCH: main
REPO_NESACHAIN_NAME: nesaorg/nesachain
REPO_NESACHAIN_BRANCH: main
REPO_NESACHAIN_DIR: nesachain
GITHUB_TOKEN: ${{ secrets.READ_GITHUB_TOKEN }}
GCP_PROJECT_ID: "phonic-scheme-417316"
GCP_KEY: ${{ secrets.GCP_KEY_STG }}
GCP_REGION: us-central1
DOCKER_FILE: ./Dockerfile
BRANCH_TO_BUILD_BY_DISPATCH: main
on:
workflow_dispatch:
repository_dispatch:
types: [trigger-build]
push:
branches:
- main
jobs:
build:
name: 'App/Build'
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
# - uses: jlumbroso/free-disk-space@main
# with:
# tool-cache: true
# android: true
# dotnet: true
# haskell: true
# large-packages: true
# swap-storage: true
- uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH_TO_BUILD_BY_DISPATCH }}
- name: Clone NesaChain repo
uses: actions/checkout@v4
with:
repository: ${{ env.REPO_NESACHAIN_NAME }}
ref: ${{ env.REPO_NESACHAIN_BRANCH }}
token: ${{ env.GITHUB_TOKEN }}
path: ./${{ env.REPO_NESACHAIN_DIR }}
- run: ls -lA
- run: ls -lA ./${{ env.REPO_NESACHAIN_DIR }}
- uses: ./.github/actions/get_terraform_shared_library_aws
# - uses: ./shared/actions/all/gitCommitHash
# - uses: ./shared/actions/all/gcpAuth
# - uses: ./shared/actions/all/gcpAuthDocker
# - uses: ./shared/actions/all/dockerBuildPush
# env:
# IMAGE_NAME: ${{ env.PROJECT }}-${{ env.APPLICATION }}