Switch publishing/docs to Gitea container registry
Some checks failed
Build and Publish Docker Image (Gitea Registry) / docker (push) Failing after 7s
Some checks failed
Build and Publish Docker Image (Gitea Registry) / docker (push) Failing after 7s
Update CI and documentation to use git.easygoingaming.com image paths and document reqPackageAccess behavior in Pterodactyl when package visibility or pull auth is not configured.
This commit is contained in:
15
.github/workflows/docker-publish.yml
vendored
15
.github/workflows/docker-publish.yml
vendored
@@ -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
|
||||
|
||||
19
README.md
19
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"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -60,3 +63,11 @@ export HOME=/home/container; mkdir -p "/home/container/galaxy/{{GALAXY_NAME}}/mo
|
||||
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.
|
||||
|
||||
## 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.
|
||||
Reference in New Issue
Block a user