mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
fix: update checkout version to dodge deprecation (#77)
This commit is contained in:
parent
1c6784eade
commit
98be03c273
7 changed files with 14 additions and 14 deletions
4
.github/workflows/deploy-on-merge.yml
vendored
4
.github/workflows/deploy-on-merge.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'terraform/**'
|
- "terraform/**"
|
||||||
|
|
||||||
# Requires these repository secrets:
|
# Requires these repository secrets:
|
||||||
# TAILSCALE_CLIENT_ID — Tailscale OAuth client ID (federated identity)
|
# TAILSCALE_CLIENT_ID — Tailscale OAuth client ID (federated identity)
|
||||||
|
|
@ -40,7 +40,7 @@ jobs:
|
||||||
host: ${{ fromJson(needs.discover.outputs.hosts) }}
|
host: ${{ fromJson(needs.discover.outputs.hosts) }}
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set up Tailscale
|
- name: Set up Tailscale
|
||||||
uses: tailscale/github-action@v4
|
uses: tailscale/github-action@v4
|
||||||
|
|
|
||||||
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
|
|
@ -4,15 +4,15 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
target:
|
target:
|
||||||
description: 'Target host (e.g. helsinki-a, london-b, all)'
|
description: "Target host (e.g. helsinki-a, london-b, all)"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
playbook:
|
playbook:
|
||||||
description: 'Ansible playbook to run (e.g. site.yml, update.yml)'
|
description: "Ansible playbook to run (e.g. site.yml, update.yml)"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
dry_run:
|
dry_run:
|
||||||
description: 'Dry run (--check mode)'
|
description: "Dry run (--check mode)"
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
hosts: ${{ steps.prepare.outputs.hosts }}
|
hosts: ${{ steps.prepare.outputs.hosts }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Build host matrix
|
- name: Build host matrix
|
||||||
id: prepare
|
id: prepare
|
||||||
|
|
@ -48,7 +48,7 @@ jobs:
|
||||||
needs: prepare
|
needs: prepare
|
||||||
name: Deploy ${{ inputs.playbook }} → ${{ matrix.host }}
|
name: Deploy ${{ inputs.playbook }} → ${{ matrix.host }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production # requires manual approval in repo settings
|
environment: production # requires manual approval in repo settings
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
||||||
2
.github/workflows/lint-ansible.yml
vendored
2
.github/workflows/lint-ansible.yml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
name: ansible-lint
|
name: ansible-lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Check for Ansible files
|
- name: Check for Ansible files
|
||||||
id: check
|
id: check
|
||||||
|
|
|
||||||
2
.github/workflows/lint-docker-compose.yml
vendored
2
.github/workflows/lint-docker-compose.yml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
name: docker compose config
|
name: docker compose config
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Stub missing env files referenced by Compose
|
- name: Stub missing env files referenced by Compose
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
6
.github/workflows/terraform.yml
vendored
6
.github/workflows/terraform.yml
vendored
|
|
@ -4,8 +4,8 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- 'terraform/**'
|
- "terraform/**"
|
||||||
- '.github/workflows/terraform.yml'
|
- ".github/workflows/terraform.yml"
|
||||||
|
|
||||||
# Requires these repository secrets:
|
# Requires these repository secrets:
|
||||||
# AGE_SECRET_KEY — age private key for SOPS decryption
|
# AGE_SECRET_KEY — age private key for SOPS decryption
|
||||||
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
name: Plan
|
name: Plan
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install OpenTofu
|
- name: Install OpenTofu
|
||||||
uses: opentofu/setup-opentofu@v1
|
uses: opentofu/setup-opentofu@v1
|
||||||
|
|
|
||||||
2
.github/workflows/validate-caddyfile.yml
vendored
2
.github/workflows/validate-caddyfile.yml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
name: caddy validate
|
name: caddy validate
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Check for Caddyfile
|
- name: Check for Caddyfile
|
||||||
id: check
|
id: check
|
||||||
|
|
|
||||||
2
.github/workflows/validate-terraform.yml
vendored
2
.github/workflows/validate-terraform.yml
vendored
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
name: tofu validate
|
name: tofu validate
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install OpenTofu
|
- name: Install OpenTofu
|
||||||
uses: opentofu/setup-opentofu@v1
|
uses: opentofu/setup-opentofu@v1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue