Skip to content

trigger-build

trigger-build #9

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
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 }}
- 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 }}