SpotiFlyer/.github/workflows/tf-refresh.yml
dependabot[bot] 57dae089e2
Bump actions/checkout from 2 to 3 in /.github/workflows
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-23 01:26:55 +00:00

35 lines
1.1 KiB
YAML

name: Refresh Terraform State
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
refresh-Infrastructure:
runs-on: ubuntu-latest
name: Refresh Main Infrastructure
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USER }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Terraform environment
uses: little-core-labs/install-terraform@v2.0.0
with:
version: 0.14.5
- name: Terraform init
run: terraform init
working-directory: infra
- name: Terraform refresh
run: terraform refresh
working-directory: infra
env:
TF_VAR_docker_registry_username: ${{ secrets.GH_PKG_USER }}
TF_VAR_docker_registry_password: ${{ secrets.GH_PKG_PASSWORD }}