add Fedora Kinoite Zrch Toolbox Gitea build job
All checks were successful
Gitea Actions Demo / build-arch-toolbox (push) Successful in 4m1s

This commit is contained in:
2024-11-26 10:01:43 -05:00
parent fc96c76b49
commit 58daf523ea
2 changed files with 18 additions and 11 deletions

View File

@@ -3,17 +3,22 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
build-arch-toolbox:
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/main'
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Login to Gitea Registry
uses: docker/login-action@v2
with:
registry: gitea.reeseapps.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: ${{ gitea.workspace }}/infrastructure/graduated/fedora
file: ${{ gitea.workspace }}/infrastructure/graduated/fedora/Containerfile
push: true
tags: "gitea.reeseapps.com/services/arch-toolbox:latest,gitea.reeseapps.com/services/arch-toolbox:${{gitea.sha}}"

View File

@@ -81,14 +81,16 @@ kubectl scale statefulset gitea --replicas 1
```bash
touch config.yaml
# Add `-e CONFIG_FILE=/config.yaml` to mount a config file
docker run \
-v $PWD/config.yaml:/config.yaml \
-v $PWD/data:/data \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CONFIG_FILE=/config.yaml \
-e GITEA_INSTANCE_URL=https://gitea.reeseapps.com \
-e GITEA_RUNNER_REGISTRATION_TOKEN=m8ZJGE5yEys6oC0trni1o2CkKrmufTnI7dxXZfIi \
-e GITEA_RUNNER_NAME=kube_runner \
-e GITEA_RUNNER_LABELS="ubuntu-latest:docker://catthehacker/ubuntu:act-latest", \
--restart always \
--name kube_runner \
-d gitea/act_runner:latest