Compare commits
4
Commits
cd8c9130bb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
302a79047d | ||
|
|
7a8aed53ab | ||
|
|
b95a8f1b8e | ||
|
|
81ca061966 |
No files matched your search
@@ -20,7 +20,7 @@ jobs:
|
|||||||
# ─── APACHE ───────────────────────────────────────────────────────────────
|
# ─── APACHE ───────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
build-apache-amd64:
|
build-apache-amd64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest-amd64
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
@@ -62,6 +62,7 @@ jobs:
|
|||||||
password: ${{ secrets.GITEAPASSWD }}
|
password: ${{ secrets.GITEAPASSWD }}
|
||||||
- id: build
|
- id: build
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
context: apache
|
context: apache
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
@@ -69,6 +70,7 @@ jobs:
|
|||||||
|
|
||||||
manifest-apache:
|
manifest-apache:
|
||||||
needs: [build-apache-amd64, build-apache-arm64]
|
needs: [build-apache-amd64, build-apache-arm64]
|
||||||
|
if: ${{ always() && needs.build-apache-amd64.result == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -86,10 +88,18 @@ jobs:
|
|||||||
username: ${{ secrets.GITEAUSER }}
|
username: ${{ secrets.GITEAUSER }}
|
||||||
password: ${{ secrets.GITEAPASSWD }}
|
password: ${{ secrets.GITEAPASSWD }}
|
||||||
- name: Create and push multi-arch manifest
|
- name: Create and push multi-arch manifest
|
||||||
|
env:
|
||||||
|
AMD64_DIGEST: ${{ needs.build-apache-amd64.outputs.digest }}
|
||||||
|
ARM64_DIGEST: ${{ needs.build-apache-arm64.outputs.digest }}
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools create -t git.steelants.cz/steelants/docker_php_base:latest \
|
IMAGE=git.steelants.cz/steelants/docker_php_base
|
||||||
git.steelants.cz/steelants/docker_php_base@${{ needs.build-apache-amd64.outputs.digest }} \
|
SOURCES="$IMAGE@$AMD64_DIGEST"
|
||||||
git.steelants.cz/steelants/docker_php_base@${{ needs.build-apache-arm64.outputs.digest }}
|
if [ -n "$ARM64_DIGEST" ]; then
|
||||||
|
SOURCES="$SOURCES $IMAGE@$ARM64_DIGEST"
|
||||||
|
else
|
||||||
|
echo "::warning::arm64 build failed - publishing amd64 only"
|
||||||
|
fi
|
||||||
|
docker buildx imagetools create -t $IMAGE:latest $SOURCES
|
||||||
|
|
||||||
- name: Discord Webhook Success
|
- name: Discord Webhook Success
|
||||||
if: success()
|
if: success()
|
||||||
@@ -97,7 +107,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||||
content: |
|
content: |
|
||||||
✅ APACHE - Build successful! (amd64 + arm64)
|
✅ APACHE - Build successful! (amd64${{ needs.build-apache-arm64.outputs.digest != '' && ' + arm64' || ' only, arm64 FAILED' }})
|
||||||
Repo: ${{ github.repository }}
|
Repo: ${{ github.repository }}
|
||||||
Branch: ${{ github.ref_name }}
|
Branch: ${{ github.ref_name }}
|
||||||
Commit: ${{ github.sha }}
|
Commit: ${{ github.sha }}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
.megamemory/knowledge.db
|
||||||
|
.megamemory/knowledge.db-shm
|
||||||
|
.megamemory/knowledge.db-wal
|
||||||
+9
-1
@@ -14,6 +14,14 @@ ENV TZ="Europe/Prague" \
|
|||||||
# Timezone
|
# Timezone
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# Register PostgreSQL (PGDG) APT repository
|
||||||
|
RUN install -d /usr/share/postgresql-common/pgdg && \
|
||||||
|
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail \
|
||||||
|
https://www.postgresql.org/media/keys/ACCC4CF8.asc && \
|
||||||
|
. /etc/os-release && \
|
||||||
|
echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt ${VERSION_CODENAME}-pgdg main" \
|
||||||
|
> /etc/apt/sources.list.d/pgdg.list
|
||||||
|
|
||||||
# Install Additional System Dependencies
|
# Install Additional System Dependencies
|
||||||
RUN rm -f /etc/apt/apt.conf.d/docker-clean
|
RUN rm -f /etc/apt/apt.conf.d/docker-clean
|
||||||
RUN --mount=type=cache,target=/var/cache/apt \
|
RUN --mount=type=cache,target=/var/cache/apt \
|
||||||
@@ -35,7 +43,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
|
|||||||
cron \
|
cron \
|
||||||
nano \
|
nano \
|
||||||
default-mysql-client \
|
default-mysql-client \
|
||||||
postgresql-client \
|
postgresql-client-19 \
|
||||||
imagemagick \
|
imagemagick \
|
||||||
libmagickwand-dev \
|
libmagickwand-dev \
|
||||||
librsvg2-2 \
|
librsvg2-2 \
|
||||||
|
|||||||
Reference in new issue
Block a user