Extend gitea actions draft
Build website container / Build image (push) Successful in 6s Details

This commit is contained in:
LordMathis 2023-12-03 00:29:21 +01:00
parent b342a8e020
commit e751ce1576
1 changed files with 6 additions and 4 deletions

View File

@ -10,13 +10,13 @@ Building a docker image and pushing it to registry with GitHub Actions is incred
## Gitea Actions
- Released with 1.19
- Based of act runner
- Mostly compatible with GitHub Actions
Gitea Actions is a CI/CD solution tightly coupled with Gitea. They are available since Gitea 1.19 and are designed to be mostly compatible with GitHub Actions. They are based on the [act](https://github.com/nektos/act) which allows you to run GitHub workflows locally. Gitea has soft forked it to create [act_runner](https://gitea.com/gitea/act_runner).
To use Gitea Actions on you instance, you need to fist allow them in `app.ini`. Then create a token and deploy the runner. Once the runner is deployed and registered you will also need to enable Actions for each repository separately. For a full guide on setting up Actions check the official [Gitea docs](https://docs.gitea.com/usage/actions/quickstart)
## Building and Pushing Docker Image with GitHub Actions
- straight forward with docker actions
With GitHub Actions you can make use of thousands of actions available in [GitHub Marketplace](https://github.com/marketplace?type=actions). If you want to build a docker image on GitHub, you can just use the official docker [build-and-push](https://github.com/marketplace/actions/build-and-push-docker-images) action. Just copy one of the examples and you are good to go.
## Building with Gitea
@ -24,6 +24,8 @@ Deploying example dind-rootless
Testing with the same workflow as on github
secrets
docker command not found
-> switch container to callthehacker