Skip to content

Commit

Permalink
github workflows: update environment
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 19, 2023
1 parent 1489c2f commit e5a3a49
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

env:
environment: tf-development

jobs:
build_test_push:
runs-on: ubuntu-latest
environment: development
environment: ${{ env.environment }}
outputs:
image_tag: ${{ steps.set_image_tag.outputs.image_tag }}
steps:
Expand Down Expand Up @@ -88,7 +91,7 @@ jobs:

development_deploy:
runs-on: ubuntu-latest
environment: development
environment: ${{ env.environment }}
env:
tf_version: '1.5.7'
tg_version: '0.54.0'
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ permissions:
id-token: write
contents: read

env:
environment: production

jobs:
build_push:
runs-on: ubuntu-latest
environment: production
environment: ${{ env.environment }}
outputs:
image_digest: ${{ steps.build_and_push.outputs.digest || steps.get_digest_from_tagged_image.outputs.image_tag }}
steps:
Expand Down Expand Up @@ -78,7 +81,7 @@ jobs:
production_deploy:
runs-on: ubuntu-latest
environment: production
environment: ${{ env.environment }}
env:
tf_version: '1.5.7'
tg_version: '0.54.0'
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ permissions:
id-token: write
contents: read

env:
environment: staging

jobs:
build_push:
runs-on: ubuntu-latest
environment: staging
environment: ${{ env.environment }}
outputs:
image_digest: ${{ steps.build_and_push.outputs.digest }}
steps:
Expand Down Expand Up @@ -60,7 +63,7 @@ jobs:

staging_deploy:
runs-on: ubuntu-latest
environment: staging
environment: ${{ env.environment }}
env:
tf_version: '1.5.7'
tg_version: '0.54.0'
Expand Down

0 comments on commit e5a3a49

Please sign in to comment.