removing staging

This commit is contained in:
Chris Rai
2024-03-13 14:05:48 -04:00
parent 0b0f365c58
commit bfdc0687b0
5 changed files with 20 additions and 139 deletions

View File

@@ -46,7 +46,7 @@ jobs:
password: ${{ secrets.AZURE_CLIENT_SECRET }}
- name: JFrog Auth
run: echo ${JFROG_NPMRC} | base64 -d > .npmrc
run: echo ${JFROG_NPMRC} | base64 -d > .npmrc
- name: Set Env
env:
@@ -56,8 +56,6 @@ jobs:
case ${ENV} in
dev)
ENVIRONMENT=dev;;
stage)
ENVIRONMENT=stg;;
preprod)
ENVIRONMENT=prd;;
*)
@@ -78,14 +76,14 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Notify if failure
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} ${{ inputs.environment }}! :this-is-fine:"
deploy:
needs: build
runs-on: [self-hosted, azure]
@@ -115,7 +113,7 @@ jobs:
env:
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on ${{ inputs.environment }}! :this-is-fine:"
- name: Notify deploy success
uses: rtCamp/action-slack-notify@v2
env: