Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cloudflare/wrangler-action action to v3.1.0 #73

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: hashicorp/setup-terraform@v2

- name: Retrieve Terraform State
uses: cloudflare/wrangler-action@v3.0.2
uses: cloudflare/wrangler-action@v3.1.0
with:
command: kv:namespace list > .kv_namespace_list.json
postCommands: jq -r '.[] | select( .title == "dispoflare-terraform-state" ) | .id' .kv_namespace_list.json | awk '{print "tfstate_kv="$1}' >> $GITHUB_ENV
Expand All @@ -26,7 +26,7 @@ jobs:
working-directory: ./.terraform

- name: Download Terraform State
uses: cloudflare/wrangler-action@v3.0.2
uses: cloudflare/wrangler-action@v3.1.0
with:
command: kv:key get --namespace-id=${{ env.tfstate_kv }} terraform.tfstate > ./.terraform/terraform.tfstate
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand All @@ -43,7 +43,7 @@ jobs:
TF_VAR_sentry_dsn: ${{ secrets.SENTRY_DSN }}

- name: Init Terraform State
uses: cloudflare/wrangler-action@v3.0.2
uses: cloudflare/wrangler-action@v3.1.0
if: ${{ env.tfstate_kv == '' }}
with:
command: kv:namespace list > .kv_namespace_list.json
Expand All @@ -52,7 +52,7 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

- name: Store Terraform State
uses: cloudflare/wrangler-action@v3.0.2
uses: cloudflare/wrangler-action@v3.1.0
with:
command: kv:key put --namespace-id=${{ env.tfstate_kv }} terraform.tfstate --path=./.terraform/terraform.tfstate
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand All @@ -76,7 +76,7 @@ jobs:
run: npm ci

- name: Publish to Cloudflare Workers
uses: cloudflare/wrangler-action@v3.0.2
uses: cloudflare/wrangler-action@v3.1.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand All @@ -93,7 +93,7 @@ jobs:
run: npm run build

- name: Publish to Cloudflare Pages
uses: cloudflare/wrangler-action@v3.0.2
uses: cloudflare/wrangler-action@v3.1.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand Down
Loading