add Fedora Kinoite Zrch Toolbox Gitea build job
All checks were successful
Gitea Actions Demo / build-arch-toolbox (push) Successful in 4m1s
All checks were successful
Gitea Actions Demo / build-arch-toolbox (push) Successful in 4m1s
This commit is contained in:
@@ -3,17 +3,22 @@ run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
build-arch-toolbox:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
steps:
|
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
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
- name: Login to Gitea Registry
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
uses: docker/login-action@v2
|
||||||
- name: List files in the repository
|
with:
|
||||||
run: |
|
registry: gitea.reeseapps.com
|
||||||
ls ${{ gitea.workspace }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
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}}"
|
||||||
|
|||||||
@@ -81,14 +81,16 @@ kubectl scale statefulset gitea --replicas 1
|
|||||||
```bash
|
```bash
|
||||||
touch config.yaml
|
touch config.yaml
|
||||||
|
|
||||||
|
# Add `-e CONFIG_FILE=/config.yaml` to mount a config file
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
-v $PWD/config.yaml:/config.yaml \
|
-v $PWD/config.yaml:/config.yaml \
|
||||||
-v $PWD/data:/data \
|
-v $PWD/data:/data \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-e CONFIG_FILE=/config.yaml \
|
|
||||||
-e GITEA_INSTANCE_URL=https://gitea.reeseapps.com \
|
-e GITEA_INSTANCE_URL=https://gitea.reeseapps.com \
|
||||||
-e GITEA_RUNNER_REGISTRATION_TOKEN=m8ZJGE5yEys6oC0trni1o2CkKrmufTnI7dxXZfIi \
|
-e GITEA_RUNNER_REGISTRATION_TOKEN=m8ZJGE5yEys6oC0trni1o2CkKrmufTnI7dxXZfIi \
|
||||||
-e GITEA_RUNNER_NAME=kube_runner \
|
-e GITEA_RUNNER_NAME=kube_runner \
|
||||||
|
-e GITEA_RUNNER_LABELS="ubuntu-latest:docker://catthehacker/ubuntu:act-latest", \
|
||||||
--restart always \
|
--restart always \
|
||||||
--name kube_runner \
|
--name kube_runner \
|
||||||
-d gitea/act_runner:latest
|
-d gitea/act_runner:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user