nx-webmail: switch Umbrel app to prebuilt GHCR image
Some checks failed
Publish nx-webmail Image / publish (push) Has been cancelled
Some checks failed
Publish nx-webmail Image / publish (push) Has been cancelled
This commit is contained in:
69
.github/workflows/publish-nx-webmail-image.yml
vendored
Normal file
69
.github/workflows/publish-nx-webmail-image.yml
vendored
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
name: Publish nx-webmail Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- "nx-webmail/**"
|
||||||
|
- ".github/workflows/publish-nx-webmail-image.yml"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to GHCR
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Read app version
|
||||||
|
id: meta
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
version=$(grep '^version:' nx-webmail/umbrel-app.yml | awk -F'"' '{print $2}')
|
||||||
|
if [ -z "$version" ]; then
|
||||||
|
echo "Could not read nx-webmail version from umbrel-app.yml" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "image=ghcr.io/weektab/nx-webmail" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Build and push image
|
||||||
|
id: build
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: ./nx-webmail
|
||||||
|
file: ./nx-webmail/Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
${{ steps.meta.outputs.image }}:${{ steps.meta.outputs.version }}
|
||||||
|
${{ steps.meta.outputs.image }}:latest
|
||||||
|
|
||||||
|
- name: Summary
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
{
|
||||||
|
echo "### nx-webmail image published"
|
||||||
|
echo ""
|
||||||
|
echo "- Image: \`${{ steps.meta.outputs.image }}\`"
|
||||||
|
echo "- Version tag: \`${{ steps.meta.outputs.version }}\`"
|
||||||
|
echo "- Digest: \`${{ steps.build.outputs.digest }}\`"
|
||||||
|
} >> "$GITHUB_STEP_SUMMARY"
|
||||||
@@ -18,6 +18,17 @@
|
|||||||
3. Open:
|
3. Open:
|
||||||
http://localhost:3001
|
http://localhost:3001
|
||||||
|
|
||||||
|
## Publish image for Umbrel
|
||||||
|
|
||||||
|
Umbrel installation is most reliable when your app uses a prebuilt image from a registry.
|
||||||
|
|
||||||
|
1. Recommended: use the GitHub Action `.github/workflows/publish-nx-webmail-image.yml`.
|
||||||
|
2. The workflow reads `version` from `nx-webmail/umbrel-app.yml` and publishes:
|
||||||
|
- `ghcr.io/weektab/nx-webmail:<version>`
|
||||||
|
- `ghcr.io/weektab/nx-webmail:latest`
|
||||||
|
3. Manual fallback:
|
||||||
|
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/weektab/nx-webmail:1.0.1 --push .
|
||||||
|
|
||||||
## Umbrel app packaging
|
## Umbrel app packaging
|
||||||
|
|
||||||
This repository is prepared for Umbrel app-store usage.
|
This repository is prepared for Umbrel app-store usage.
|
||||||
@@ -41,6 +52,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`).
|
||||||
- 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,10 +7,7 @@ services:
|
|||||||
APP_PORT: 3001
|
APP_PORT: 3001
|
||||||
|
|
||||||
server:
|
server:
|
||||||
build:
|
image: ghcr.io/weektab/nx-webmail:1.0.1
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
image: nx-webmail:1.0.0
|
|
||||||
init: true
|
init: true
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
stop_grace_period: 1m
|
stop_grace_period: 1m
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ name: Webmail
|
|||||||
tagline: Self-hosted IMAP/SMTP webmail client
|
tagline: Self-hosted IMAP/SMTP webmail client
|
||||||
icon: logo.svg
|
icon: logo.svg
|
||||||
category: utilities
|
category: utilities
|
||||||
version: "1.0.0"
|
version: "1.0.1"
|
||||||
port: 3001
|
port: 3001
|
||||||
description: >-
|
description: >-
|
||||||
Webmail is a lightweight, self-hosted webmail app for connecting to external
|
Webmail is a lightweight, self-hosted webmail app for connecting to external
|
||||||
@@ -17,7 +17,7 @@ repo: https://git.weektab.org/nexus/webmail
|
|||||||
support: https://git.weektab.org/nexus/webmail/issues
|
support: https://git.weektab.org/nexus/webmail/issues
|
||||||
gallery: []
|
gallery: []
|
||||||
releaseNotes: >-
|
releaseNotes: >-
|
||||||
Initial Umbrel app packaging.
|
Switched to a prebuilt container image for more reliable Umbrel installs.
|
||||||
dependencies: []
|
dependencies: []
|
||||||
path: ""
|
path: ""
|
||||||
defaultUsername: ""
|
defaultUsername: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user