Update readme.md

This commit is contained in:
jansel 2025-06-14 12:56:23 +02:00
parent e377ca9ff9
commit 516c70d112

View file

@ -4,19 +4,6 @@ When using the Actions on this Gitea Server, please make sure to follow the impo
All codeblocks here are examples.
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
## Actions
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
```
Actions should use the Github Variant, so when you declare an action with `uses` then use the full action url (like `https://github.com/actions/checkout@v4`)