From 3fa1948ed2866e0cf37c942ffeaed0ce418cc23a Mon Sep 17 00:00:00 2001 From: jansel Date: Wed, 11 Dec 2024 21:49:43 +0000 Subject: [PATCH] Add readme.md --- readme.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..8cffcbd --- /dev/null +++ b/readme.md @@ -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/ . # 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/ # same image tag stuff applies here +``` \ No newline at end of file