Compare commits
No commits in common. "e1d2802621b208f37e61a34ea16cf5879e1fb87d" and "88f5f43377aeff0fc85386d8de0ad868252e2737" have entirely different histories.
e1d2802621
...
88f5f43377
31
.gitea/workflow/ci.yaml
Normal file
31
.gitea/workflow/ci.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
tags: |
|
||||
esinio/gitea-runner-ci-demo:latest
|
||||
|
@ -1,42 +0,0 @@
|
||||
name: Gitea Actions CI Demo
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
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: Checkout repository code
|
||||
uses: actions/checkout@v3
|
||||
- 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: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
- name: Login to Docker Hub
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: https://github.com/docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64
|
||||
tags: |
|
||||
esinio/gitea-runner-ci-demo:latest
|
||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||
|
14
README.md
14
README.md
@ -1,15 +1,3 @@
|
||||
# gitea-runner-ci-demo
|
||||
|
||||
A gitea runner ci demo
|
||||
|
||||
|
||||
### gitea runner
|
||||
``` shell
|
||||
docker run -itd \
|
||||
-e GITEA_INSTANCE_URL=<gitea-server> \
|
||||
-e GITEA_RUNNER_REGISTRATION_TOKEN=<gitea-runner-token> \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
--name gitea_runner \
|
||||
gitea/act_runner:latest
|
||||
|
||||
```
|
||||
A gitea runner ci demo
|
Loading…
x
Reference in New Issue
Block a user