ci: switch to Gitea actions
This commit is contained in:
parent
0a77d65c13
commit
3cb166b6bc
2 changed files with 61 additions and 0 deletions
22
.gitea/workflows/renovate.yaml
Normal file
22
.gitea/workflows/renovate.yaml
Normal 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
|
39
.gitea/workflows/terraform.yaml
Normal file
39
.gitea/workflows/terraform.yaml
Normal 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 }}"
|
Loading…
Reference in a new issue