mirror of
https://github.com/imjasonh/kontain.me
synced 2026-07-08 09:04:54 +00:00
Bumps the actions group with 3 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/setup-go](https://github.com/actions/setup-go) and [imjasonh/setup-crane](https://github.com/imjasonh/setup-crane). Updates `actions/checkout` from 6.0.2 to 7.0.0 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](de0fac2e45...9c091bb21b) Updates `actions/setup-go` from 6.4.0 to 6.5.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](4a3601121d...924ae3a1cd) Updates `imjasonh/setup-crane` from 0.5 to 0.7 - [Release notes](https://github.com/imjasonh/setup-crane/releases) - [Commits](6da1ae0188...feee3b6bb0) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/setup-go dependency-version: 6.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: imjasonh/setup-crane dependency-version: '0.7' dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
name: Deploy
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 1 * * *' # 1AM UTC; 9PM Eastern
|
|
push:
|
|
branches: ['main']
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy
|
|
runs-on: ['ubuntu-latest']
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
env:
|
|
KO_DOCKER_REPO: gcr.io/kontaindotme
|
|
TF_VAR_domain: kontain.me
|
|
TF_VAR_project_id: kontaindotme
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
|
|
with:
|
|
go-version: stable
|
|
- uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e # v4.0.1
|
|
- uses: imjasonh/setup-crane@feee3b6bb0d4c68370f256a4502498c9227e5c6b # v0.7
|
|
|
|
# Setup OIDC->SA auth
|
|
- uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
|
|
id: auth
|
|
with:
|
|
workload_identity_provider: 'projects/7577580991/locations/global/workloadIdentityPools/gha-pool/providers/gha-provider'
|
|
service_account: 'gha-deployer@kontaindotme.iam.gserviceaccount.com'
|
|
- uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # v3.0.1
|
|
with:
|
|
project_id: kontaindotme
|
|
|
|
- name: Terraform Plan and Apply
|
|
run: |
|
|
terraform init
|
|
terraform plan -input=false -lock=false -out=plan.tmp
|
|
terraform apply -auto-approve -input=false plan.tmp
|