Skip to content

Commit

Permalink
Fixup tf init command
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcfarland committed May 2, 2024
1 parent feb076d commit d91e72e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ jobs:

deploy:
runs-on: ubuntu-latest
needs:
- build_and_publish
# needs:
# - build_and_publish
steps:
- uses: actions/checkout@v3

Expand All @@ -90,17 +90,17 @@ jobs:
tenant-id: ${{ fromJSON(secrets.SECURE_AZURE_CREDENTIALS).tenantId }}
subscription-id: ${{ fromJSON(secrets.SECURE_AZURE_CREDENTIALS).subscriptionId }}

- name: Get image tag
id: get_image_tag
run:
case "${GITHUB_REF}" in
*tags*)
echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
;;
*)
echo "tag=latest" >> $GITHUB_OUTPUT
;;
esac
# - name: Get image tag
# id: get_image_tag
# run:
# case "${GITHUB_REF}" in
# *tags*)
# echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
# ;;
# *)
# echo "tag=latest" >> $GITHUB_OUTPUT
# ;;
# esac

- name: Deploy
# run: ./scripts/cideploy
Expand All @@ -112,4 +112,6 @@ jobs:
ARM_TENANT_ID: ${{ fromJSON(secrets.SECURE_AZURE_CREDENTIALS).tenantId }}
ARM_USE_OIDC: true
run:
cd deployment/terraform/staging
ls
terraform init

0 comments on commit d91e72e

Please sign in to comment.