Skip to content

Commit

Permalink
workflows: upgrade tg, fix apply command
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 11, 2023
1 parent 0be592e commit 20d21b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Production
name: Deploy Production

on:
release:
Expand All @@ -16,7 +16,7 @@ jobs:
environment: production
env:
tf_version: '1.5.7'
tg_version: '0.51.0'
tg_version: '0.54.0'
tg_dir: './deploy/tg'
steps:
- name: Checkout
Expand Down Expand Up @@ -60,7 +60,6 @@ jobs:
tg_dir: ${{ env.tg_dir }}
tg_command: 'plan -out=tf.plan'
env:
TF_INPUT: 0
TF_IN_AUTOMATION: true
# get the image digest from the build job with optional override from vars context
TF_VAR_image: ${{ vars.IMAGE || steps.set_image_digest.outputs.image_digest }}
Expand All @@ -72,9 +71,8 @@ jobs:
tf_version: ${{ env.tf_version }}
tg_version: ${{ env.tg_version }}
tg_dir: ${{ env.tg_dir }}
tg_command: 'apply tf.plan'
tg_command: 'apply -auto-approve tf.plan'
env:
TF_INPUT: 0
TF_IN_AUTOMATION: true
# get the image digest from the build job with optional override from vars context
TF_VAR_image: ${{ vars.IMAGE || steps.set_image_digest.outputs.image_digest }}
7 changes: 3 additions & 4 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to Staging
name: Deploy Staging

on:
push:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
environment: staging
env:
tf_version: '1.5.7'
tg_version: '0.51.0'
tg_version: '0.54.0'
tg_dir: './deploy/tg'
needs: build_test_push
steps:
Expand Down Expand Up @@ -99,9 +99,8 @@ jobs:
tf_version: ${{ env.tf_version }}
tg_version: ${{ env.tg_version }}
tg_dir: ${{ env.tg_dir }}
tg_command: 'apply tf.plan'
tg_command: 'apply -auto-approve tf.plan'
env:
TF_INPUT: 0
TF_IN_AUTOMATION: true
# get the image digest from the build job with optional override from vars context
TF_VAR_image: ${{ vars.IMAGE || needs.build_test_push.outputs.image_digest }}
Expand Down

0 comments on commit 20d21b0

Please sign in to comment.