ci: switch to Gitea actions
Some checks failed
Renovate / renovate (push) Failing after 9s
Hetzner Cloud template / hetzner-cloud-template (push) Successful in 22s

This commit is contained in:
Peter 2023-11-17 11:36:31 +01:00
parent 0a77d65c13
commit 3cb166b6bc
No known key found for this signature in database
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,22 @@
name: Renovate
on:
push:
branches:
- main
schedule:
- cron: '11 4 * * *'
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- uses: docker://code.icb4dc0.de/infrastructure/images/renovate:latest
with:
args: renovate "${{ github.repository }}"
env:
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
RENOVATE_PLATFORM: gitea
RENOVATE_AUTODISCOVER: "false"
RENOVATE_ENDPOINT: https://code.icb4dc0.de/api/v1
LOG_LEVEL: info

View file

@ -0,0 +1,39 @@
name: Hetzner Cloud template
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
hetzner-cloud-template:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
with:
fetch-depth: '0'
- name: Validate
working-directory: ./hetzner-cloud
run: |
terraform init
terraform validate
- name: Deploy Hetzner Cloud template
uses: docker://ghcr.io/coder/coder:v2.3.3-arm64
with:
entrypoint: /opt/coder
args: |
templates push \
--name "${{ github.sha }}" \
--directory "hetzner-cloud" \
--variable hcloud_token="${{ secrets.HCLOUD_TOKEN }}" \
--variable use_subdomain=true \
--variable private_network_id="${{ secrets.HCLOUD_PRIVATE_NETWORK_ID }}" \
--yes \
"Hetzner-Cloud"
env:
CODER_URL: https://ide.icb4dc0.de
CODER_SESSION_TOKEN: "${{ secrets.CODER_TOKEN }}"