Add readme.md
This commit is contained in:
commit
3fa1948ed2
1 changed files with 34 additions and 0 deletions
34
readme.md
Normal file
34
readme.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Actions info
|
||||
|
||||
When using the Actions on this Gitea Server, please make sure to follow the important steps:
|
||||
|
||||
All codeblocks here are examples.
|
||||
|
||||
In the jobs, the first step must be to disable SSL as a temporary fix, as the action will pull the repo through a local link and has no valit CA for the SSL certificate, so it should look like this:
|
||||
```yml
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Disable SSL verify (Temporary Fix)
|
||||
run: git config --global http.sslVerify false
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
```
|
||||
|
||||
When working with the Container Registry (f.ex. for docker images) do not use the docker/buildx-action directly after the login to the registry, instead do it like this (the registry url is a must have!):
|
||||
```yml
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v3
|
||||
|
||||
with:
|
||||
registry: pi5:8125
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.PW }} # add a repository Secret called PW for this, or change PW to any name you like
|
||||
|
||||
- name: Build the Docker image
|
||||
run: docker build -t pi5:8125/<image tag> . # f.ex. the image tag to push is pi5:8125/jansel/example, then when pushed successfully you can pull it normally with 'docker pull git.jansel.dev/jansel/example:latest'
|
||||
|
||||
- name: Push the Docker image
|
||||
run: docker push pi5:8125/<image tag> # same image tag stuff applies here
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue