This commit is contained in:
@@ -25,12 +25,12 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to GHCR
|
- name: Log in to Gitea Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: git.weektab.org
|
||||||
username: ${{ secrets.GHCR_USERNAME }}
|
username: ${{ secrets.GITEA_USERNAME }}
|
||||||
password: ${{ secrets.GHCR_TOKEN }}
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
- name: Read app version
|
- name: Read app version
|
||||||
id: meta
|
id: meta
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
echo "image=ghcr.io/weektab/nx-webmail" >> "$GITHUB_OUTPUT"
|
echo "image=git.weektab.org/nexus/nx-webmail" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
id: build
|
id: build
|
||||||
|
|||||||
@@ -24,13 +24,13 @@ Umbrel installation is most reliable when your app uses a prebuilt image from a
|
|||||||
|
|
||||||
1. Recommended: use the GitHub Action `.github/workflows/publish-nx-webmail-image.yml`.
|
1. Recommended: use the GitHub Action `.github/workflows/publish-nx-webmail-image.yml`.
|
||||||
- For Gitea use `.gitea/workflows/publish-nx-webmail-image.yml`.
|
- For Gitea use `.gitea/workflows/publish-nx-webmail-image.yml`.
|
||||||
- Required Gitea secrets: `GHCR_USERNAME`, `GHCR_TOKEN`, `GITEA_USERNAME`, `GITEA_TOKEN`.
|
- Required Gitea secrets: `GITEA_USERNAME`, `GITEA_TOKEN`.
|
||||||
2. The workflow reads `version` from `nx-webmail/umbrel-app.yml` and publishes:
|
2. The workflow reads `version` from `nx-webmail/umbrel-app.yml` and publishes:
|
||||||
- `ghcr.io/weektab/nx-webmail:<version>`
|
- `git.weektab.org/nexus/nx-webmail:<version>`
|
||||||
- `ghcr.io/weektab/nx-webmail:latest`
|
- `git.weektab.org/nexus/nx-webmail:latest`
|
||||||
3. The workflow then pins `nx-webmail/docker-compose.yml` to `tag@sha256:digest` automatically.
|
3. The workflow then pins `nx-webmail/docker-compose.yml` to `tag@sha256:digest` automatically.
|
||||||
4. Manual fallback:
|
4. Manual fallback:
|
||||||
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/weektab/nx-webmail:1.0.1 --push .
|
docker buildx build --platform linux/amd64,linux/arm64 -t git.weektab.org/nexus/nx-webmail:1.0.1 --push .
|
||||||
|
|
||||||
## Umbrel app packaging
|
## Umbrel app packaging
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ This repository is prepared for Umbrel app-store usage.
|
|||||||
Notes:
|
Notes:
|
||||||
- Umbrel uses the `app_proxy` service in `docker-compose.yml`.
|
- Umbrel uses the `app_proxy` service in `docker-compose.yml`.
|
||||||
- Internal app port is `3001`.
|
- Internal app port is `3001`.
|
||||||
- `server` uses a prebuilt registry image (`ghcr.io/weektab/nx-webmail:1.0.1`).
|
- `server` uses a prebuilt registry image (`git.weektab.org/nexus/nx-webmail:1.0.1`).
|
||||||
- If your store prefix changes, update `id` in `umbrel-app.yml` and `APP_HOST` in `docker-compose.yml`.
|
- If your store prefix changes, update `id` in `umbrel-app.yml` and `APP_HOST` in `docker-compose.yml`.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ services:
|
|||||||
APP_PORT: 3001
|
APP_PORT: 3001
|
||||||
|
|
||||||
server:
|
server:
|
||||||
image: ghcr.io/weektab/nx-webmail:1.0.1
|
image: git.weektab.org/nexus/nx-webmail:1.0.1
|
||||||
init: true
|
init: true
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
stop_grace_period: 1m
|
stop_grace_period: 1m
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"name": "weektab-webmail-standalone",
|
"name": "weektab-webmail-standalone",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user