diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 421aa33..b9751a0 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,4 +1,4 @@ -name: Build and Publish Docker Image +name: Build and Publish Docker Image (Gitea Registry) on: push: @@ -9,26 +9,23 @@ on: jobs: docker: runs-on: ubuntu-latest - permissions: - contents: read - packages: write steps: - name: Checkout uses: actions/checkout@v4 - - name: Log in to GHCR + - name: Log in to Gitea Registry uses: docker/login-action@v3 with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: git.easygoingaming.com + username: ${{ gitea.actor }} + password: ${{ secrets.GITEA_TOKEN }} - name: Extract metadata id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/${{ github.repository_owner }}/avorion-steamcmd-nsswrap + images: git.easygoingaming.com/davoguha/avorion-steamcmd-nsswrap tags: | type=raw,value=latest type=ref,event=tag diff --git a/README.md b/README.md index 6feea8d..e11b17c 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,14 @@ This image adds a temporary passwd/group entry at startup using `libnss-wrapper` ## Build and publish -Replace `YOUR_GHCR_USER` with your GitHub Container Registry namespace. +This project is designed for deployment in Pterodactyl using the Gitea container registry on `git.easygoingaming.com`. + +Replace `YOUR_GITEA_USER` with your Gitea namespace. ```bash -docker build -t ghcr.io/YOUR_GHCR_USER/avorion-steamcmd-nsswrap:latest . -docker push ghcr.io/YOUR_GHCR_USER/avorion-steamcmd-nsswrap:latest +docker login git.easygoingaming.com +docker build -t git.easygoingaming.com/YOUR_GITEA_USER/avorion-steamcmd-nsswrap:latest . +docker push git.easygoingaming.com/YOUR_GITEA_USER/avorion-steamcmd-nsswrap:latest ``` ## Egg changes @@ -36,7 +39,7 @@ To something like: ```json "docker_images": { - "ghcr.io/YOUR_GHCR_USER/avorion-steamcmd-nsswrap:latest": "ghcr.io/YOUR_GHCR_USER/avorion-steamcmd-nsswrap:latest" + "git.easygoingaming.com/YOUR_GITEA_USER/avorion-steamcmd-nsswrap:latest": "git.easygoingaming.com/YOUR_GITEA_USER/avorion-steamcmd-nsswrap:latest" } ``` @@ -59,4 +62,12 @@ export HOME=/home/container; mkdir -p "/home/container/galaxy/{{GALAXY_NAME}}/mo 5. Use the conservative startup command above. 6. Reinstall or rebuild the server container if needed so it pulls the new image. 7. Start the server and confirm the Avorion home-directory error is gone. -8. Only after it boots cleanly, revisit `--datapath`, symlinks, or mod path adjustments. \ No newline at end of file +8. Only after it boots cleanly, revisit `--datapath`, symlinks, or mod path adjustments. + +## Pterodactyl registry auth note + +If Pterodactyl logs `unauthorized: reqPackageAccess` while pulling, the image is either not published yet or the registry requires auth for pulls. + +- Confirm the image tag exists in Gitea Packages. +- If the package is private, configure Docker registry credentials on the Pterodactyl node for `git.easygoingaming.com`. +- If you want anonymous pulls, set the package visibility to public in Gitea. \ No newline at end of file