Skip to content

Commit

Permalink
Update post-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored Oct 21, 2024
1 parent 188dd21 commit a82a8b0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,8 @@ jobs:
ARM_SUBSCRIPTION_ID: "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
ARM_TENANT_ID: "${{ secrets.AZURE_TENANT_ID }}"
run: |
IMAGE="ghcr.io/${{ github.repository }}:${{ steps.semantic.outputs.new_release_version }}-RC@sha256:${{ env.image_sha256_rc }}"
echo "[$IMAGE] will be deployed."
terraform init -backend-config="env/dev-cd/backend.tfvars" -reconfigure
terraform apply -var-file="env/dev-cd/terraform.tfvars" -var="mil_auth_image=$IMAGE" -auto-approve -lock-timeout=300s
terraform apply -var-file="env/dev-cd/terraform.tfvars" -var="mil_auth_image=${{ env.image_sha256_rc }}" -auto-approve -lock-timeout=300s
#
# Install Node.
Expand Down Expand Up @@ -295,7 +293,5 @@ jobs:
ARM_SUBSCRIPTION_ID: "${{ secrets.AZURE_SUBSCRIPTION_ID }}"
ARM_TENANT_ID: "${{ secrets.AZURE_TENANT_ID }}"
run: |
IMAGE="ghcr.io/${{ github.repository }}:${{ steps.semantic.outputs.new_release_version }}@sha256:${{ env.env.image_sha256 }}"
echo "[$IMAGE] will be deployed."
terraform init -backend-config="env/dev-cd/backend.tfvars" -reconfigure
terraform apply -var-file="env/dev-cd/terraform.tfvars" -var="mil_auth_image=$IMAGE" -auto-approve -lock-timeout=300s
terraform apply -var-file="env/dev-cd/terraform.tfvars" -var="mil_auth_image=${{ env.image_sha256 }}" -auto-approve -lock-timeout=300s

0 comments on commit a82a8b0

Please sign in to comment.