Skip to content

Commit

Permalink
Update environments-secrets.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jumainfomagnus authored Jun 14, 2024
1 parent ed8e2f8 commit 2befbf0
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/environments-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,30 @@ jobs:
echo Repo secret is ${{ secrets.MY_REPO_SECRET }}
echo Org secret is ${{ secrets.MY_ORG_SECRET }}
echo Env secret is not accessible ${{ secrets.MY_ENV_SECRET }}
use-environment-uat:
name: Use UAT environment
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: use-environment-test

environment:
name: UAT
url: 'https://uat.github.com'

steps:
- name: Step that uses the UAT environment
run: echo "Deployment to UAT..."
env:
env_secret: ${{ secrets.MY_ENV_SECRET }}


use-environment-prod:
name: Use PROD environment
runs-on: ubuntu-latest
#if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

needs: use-environment-test
needs: use-environment-uat

environment:
name: PROD
Expand Down

0 comments on commit 2befbf0

Please sign in to comment.