mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-24 18:04:33 +01:00
57dae089e2
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>
35 lines
1.1 KiB
YAML
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 }}
|