🗃️ Updated workflows and moved rootfs 🗃️

Dockerfile
Dockerfile.10
Dockerfile.10-dev
Dockerfile.8
Dockerfile.8-dev
Dockerfile.9
Dockerfile.9-dev
dockerfs/
.gitea/workflows/docker.10-dev.yaml
.gitea/workflows/docker.10.yaml
.gitea/workflows/docker.8-dev.yaml
.gitea/workflows/docker.8.yaml
.gitea/workflows/docker.9-dev.yaml
.gitea/workflows/docker.9.yaml
.gitea/workflows/docker.yaml
.github/
README.md
rootfs/root/docker/setup/00-init.sh
rootfs/root/docker/setup/01-system.sh
rootfs/root/docker/setup/02-packages.sh
rootfs/root/docker/setup/03-files.sh
rootfs/root/docker/setup/04-users.sh
rootfs/root/docker/setup/05-custom.sh
rootfs/root/docker/setup/06-post.sh
rootfs/root/docker/setup/07-cleanup.sh
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/pkmgr
rootfs/usr/local/etc/docker/functions/entrypoint.sh
rootfs/usr/local/share/template-files/config/env/default.sample
rootfs/usr/local/share/template-files/config/env/examples/00-directory.sh
rootfs/usr/local/share/template-files/config/env/examples/addresses.sh
rootfs/usr/local/share/template-files/config/env/examples/certbot.sh
rootfs/usr/local/share/template-files/config/env/examples/couchdb.sh
rootfs/usr/local/share/template-files/config/env/examples/dockerd.sh
rootfs/usr/local/share/template-files/config/env/examples/global.sh
rootfs/usr/local/share/template-files/config/env/examples/healthcheck.sh
rootfs/usr/local/share/template-files/config/env/examples/mariadb.sh
rootfs/usr/local/share/template-files/config/env/examples/mongodb.sh
rootfs/usr/local/share/template-files/config/env/examples/networking.sh
rootfs/usr/local/share/template-files/config/env/examples/other.sh
rootfs/usr/local/share/template-files/config/env/examples/php.sh
rootfs/usr/local/share/template-files/config/env/examples/postgres.sh
rootfs/usr/local/share/template-files/config/env/examples/redis.sh
rootfs/usr/local/share/template-files/config/env/examples/services.sh
rootfs/usr/local/share/template-files/config/env/examples/ssl.sh
rootfs/usr/local/share/template-files/config/env/examples/supabase.sh
rootfs/usr/local/share/template-files/config/env/examples/webservers.sh
rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
rootfs/usr/local/share/template-files/config/.gitkeep
rootfs/usr/local/share/template-files/data/.gitkeep
rootfs/usr/local/share/template-files/defaults/.gitkeep
This commit is contained in:
casjay
2026-01-15 23:48:02 -05:00
parent cce1fe8739
commit 40d0d41781
56 changed files with 978 additions and 162 deletions

View File

@@ -1,9 +1,15 @@
name: almalinux-10-dev
on: push
on:
push:
branches:
- main
- master
schedule:
- cron: '0 2 2 * *'
jobs:
almalinux-10-dev:
build-and-push:
runs-on: act_runner
container:
image: catthehacker/ubuntu:act-latest
@@ -16,38 +22,63 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Get Meta
id: meta
env:
TAG: 10-dev
ORG: casjaysdev
HUB: docker.io
run: |
echo DATE_TAG=$(date +'%y%m') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo DOCKER_TAG=$([ -n "$TAG" ] && echo $TAG || echo "10-dev") >> $GITHUB_OUTPUT
echo DOCKER_HUB=$([ -n "$HUB" ] && echo $HUB || echo "docker.io") >> $GITHUB_OUTPUT
echo DOCKER_ORG=$([ -n "$ORG" ] && echo "$ORG" || echo "casjaysdev") >> $GITHUB_OUTPUT
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | sed 's|^docker-||g') >> $GITHUB_OUTPUT
- name: Set up Docker BuildX
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
registry: ${{ steps.meta.outputs.DOCKER_HUB }}
registry: docker.io
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.9
file: ./Dockerfile.10-dev
platforms: |
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
${{ steps.meta.outputs.DOCKER_HUB }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.DOCKER_TAG }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=10-dev
IMAGE_REPO=casjaysdev/almalinux
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=10-kitten
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=casjaysdev/almalinux
org.opencontainers.image.description=Containerized version of casjaysdev/almalinux
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=10-dev
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
docker.io/casjaysdev/almalinux:10-dev

View File

@@ -1,9 +1,15 @@
name: almalinux-10
on: push
on:
push:
branches:
- main
- master
schedule:
- cron: '0 2 2 * *'
jobs:
almalinux-10:
build-and-push:
runs-on: act_runner
container:
image: catthehacker/ubuntu:act-latest
@@ -16,38 +22,63 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Get Meta
id: meta
env:
TAG: 10
ORG: casjaysdev
HUB: docker.io
run: |
echo DATE_TAG=$(date +'%y%m') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo DOCKER_TAG=$([ -n "$TAG" ] && echo $TAG || echo "10") >> $GITHUB_OUTPUT
echo DOCKER_HUB=$([ -n "$HUB" ] && echo $HUB || echo "docker.io") >> $GITHUB_OUTPUT
echo DOCKER_ORG=$([ -n "$ORG" ] && echo "$ORG" || echo "casjaysdev") >> $GITHUB_OUTPUT
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | sed 's|^docker-||g') >> $GITHUB_OUTPUT
- name: Set up Docker BuildX
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
registry: ${{ steps.meta.outputs.DOCKER_HUB }}
registry: docker.io
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.9
file: ./Dockerfile.10
platforms: |
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
${{ steps.meta.outputs.DOCKER_HUB }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.DOCKER_TAG }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=10
IMAGE_REPO=casjaysdev/almalinux
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=10-kitten
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=casjaysdev/almalinux
org.opencontainers.image.description=Containerized version of casjaysdev/almalinux
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=10
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
docker.io/casjaysdev/almalinux:10

View File

@@ -1,9 +1,15 @@
name: almalinux-8-dev
on: push
on:
push:
branches:
- main
- master
schedule:
- cron: '0 2 2 * *'
jobs:
almalinux-8-dev:
build-and-push:
runs-on: act_runner
container:
image: catthehacker/ubuntu:act-latest
@@ -16,38 +22,63 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Get Meta
id: meta
env:
TAG: 8-dev
ORG: casjaysdev
HUB: docker.io
run: |
echo DATE_TAG=$(date +'%y%m') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo DOCKER_TAG=$([ -n "$TAG" ] && echo $TAG || echo "8-dev") >> $GITHUB_OUTPUT
echo DOCKER_HUB=$([ -n "$HUB" ] && echo $HUB || echo "docker.io") >> $GITHUB_OUTPUT
echo DOCKER_ORG=$([ -n "$ORG" ] && echo "$ORG" || echo "casjaysdev") >> $GITHUB_OUTPUT
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | sed 's|^docker-||g') >> $GITHUB_OUTPUT
- name: Set up Docker BuildX
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
registry: ${{ steps.meta.outputs.DOCKER_HUB }}
registry: docker.io
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.9
file: ./Dockerfile.8-dev
platforms: |
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
${{ steps.meta.outputs.DOCKER_HUB }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.DOCKER_TAG }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=8-dev
IMAGE_REPO=casjaysdev/almalinux
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=8
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=casjaysdev/almalinux
org.opencontainers.image.description=Containerized version of casjaysdev/almalinux
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=8-dev
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
docker.io/casjaysdev/almalinux:8-dev

View File

@@ -1,9 +1,15 @@
name: almalinux-8
on: push
on:
push:
branches:
- main
- master
schedule:
- cron: '0 2 2 * *'
jobs:
almalinux-8:
build-and-push:
runs-on: act_runner
container:
image: catthehacker/ubuntu:act-latest
@@ -16,29 +22,21 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Get Meta
id: meta
env:
TAG: 8
ORG: casjaysdev
HUB: docker.io
run: |
echo DATE_TAG=$(date +'%y%m') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo DOCKER_TAG=$([ -n "$TAG" ] && echo $TAG || echo "8") >> $GITHUB_OUTPUT
echo DOCKER_HUB=$([ -n "$HUB" ] && echo $HUB || echo "docker.io") >> $GITHUB_OUTPUT
echo DOCKER_ORG=$([ -n "$ORG" ] && echo "$ORG" || echo "casjaysdev") >> $GITHUB_OUTPUT
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | sed 's|^docker-||g') >> $GITHUB_OUTPUT
- name: Set up Docker BuildX
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
registry: ${{ steps.meta.outputs.DOCKER_HUB }}
registry: docker.io
- name: Build and push
uses: docker/build-push-action@v4
@@ -49,5 +47,38 @@ jobs:
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
${{ steps.meta.outputs.DOCKER_HUB }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.DOCKER_TAG }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=8
IMAGE_REPO=casjaysdev/almalinux
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=${IMAGE_VERSION}
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=casjaysdev/almalinux
org.opencontainers.image.description=Containerized version of casjaysdev/almalinux
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=8
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
docker.io/casjaysdev/almalinux:8

View File

@@ -1,9 +1,15 @@
name: almalinux-9-dev
on: push
on:
push:
branches:
- main
- master
schedule:
- cron: '0 2 2 * *'
jobs:
almalinux-9-dev:
build-and-push:
runs-on: act_runner
container:
image: catthehacker/ubuntu:act-latest
@@ -16,38 +22,63 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Get Meta
id: meta
env:
TAG: 9-dev
ORG: casjaysdev
HUB: docker.io
run: |
echo DATE_TAG=$(date +'%y%m') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo DOCKER_TAG=$([ -n "$TAG" ] && echo $TAG || echo "9-dev") >> $GITHUB_OUTPUT
echo DOCKER_HUB=$([ -n "$HUB" ] && echo $HUB || echo "docker.io") >> $GITHUB_OUTPUT
echo DOCKER_ORG=$([ -n "$ORG" ] && echo "$ORG" || echo "casjaysdev") >> $GITHUB_OUTPUT
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | sed 's|^docker-||g') >> $GITHUB_OUTPUT
- name: Set up Docker BuildX
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
registry: ${{ steps.meta.outputs.DOCKER_HUB }}
registry: docker.io
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.9
file: ./Dockerfile.9-dev
platforms: |
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
${{ steps.meta.outputs.DOCKER_HUB }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.DOCKER_TAG }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=9-dev
IMAGE_REPO=casjaysdev/almalinux
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=9
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=casjaysdev/almalinux
org.opencontainers.image.description=Containerized version of casjaysdev/almalinux
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=9-dev
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
docker.io/casjaysdev/almalinux:9-dev

View File

@@ -1,9 +1,15 @@
name: almalinux-9
on: push
on:
push:
branches:
- main
- master
schedule:
- cron: '0 2 2 * *'
jobs:
almalinux-9:
build-and-push:
runs-on: act_runner
container:
image: catthehacker/ubuntu:act-latest
@@ -16,29 +22,21 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Get Meta
id: meta
env:
TAG: 9
ORG: casjaysdev
HUB: docker.io
run: |
echo DATE_TAG=$(date +'%y%m') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo DOCKER_TAG=$([ -n "$TAG" ] && echo $TAG || echo "9") >> $GITHUB_OUTPUT
echo DOCKER_HUB=$([ -n "$HUB" ] && echo $HUB || echo "docker.io") >> $GITHUB_OUTPUT
echo DOCKER_ORG=$([ -n "$ORG" ] && echo "$ORG" || echo "casjaysdev") >> $GITHUB_OUTPUT
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | sed 's|^docker-||g') >> $GITHUB_OUTPUT
- name: Set up Docker BuildX
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
registry: ${{ steps.meta.outputs.DOCKER_HUB }}
registry: docker.io
- name: Build and push
uses: docker/build-push-action@v4
@@ -49,5 +47,38 @@ jobs:
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
${{ steps.meta.outputs.DOCKER_HUB }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.DOCKER_TAG }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=9
IMAGE_REPO=casjaysdev/almalinux
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=${IMAGE_VERSION}
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=casjaysdev/almalinux
org.opencontainers.image.description=Containerized version of casjaysdev/almalinux
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=9
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
docker.io/casjaysdev/almalinux:9

View File

@@ -1,9 +1,15 @@
name: almalinux
on: push
on:
push:
branches:
- main
- master
schedule:
- cron: '0 2 2 * *'
jobs:
release-almalinux:
build-and-push:
runs-on: act_runner
container:
image: catthehacker/ubuntu:act-latest
@@ -16,26 +22,21 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Get Meta
id: meta
run: |
echo DATE_TAG=$(date +'%y%m') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo DOCKER_ORG=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $1}') >> $GITHUB_OUTPUT
echo DOCKER_TAG=$([ -n "$DOCKER_TAG" ] && echo ${DOCKER_TAG} || echo "latest") >> $GITHUB_OUTPUT
echo DOCKER_HUB=$([ -n "$DOCKER_HUB" ] && echo ${DOCKER_HUB} || echo "docker.io") >> $GITHUB_OUTPUT
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}' | sed 's|^docker-||g') >> $GITHUB_OUTPUT
echo "$DOCKER_HUB/$DOCKER_ORG/$REPO_NAME:$DOCKER_TAG"
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{ secrets.DOCKER_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
registry: ${{ steps.meta.outputs.DOCKER_HUB }}
registry: docker.io
- name: Build and push
uses: docker/build-push-action@v4
@@ -46,6 +47,39 @@ jobs:
linux/amd64
linux/arm64
push: true
tags: | # replace it with your local IP and tags
${{ steps.meta.outputs.DOCKER_HUB }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.DATE_TAG }}
${{ steps.meta.outputs.DOCKER_HUB }}/${{ steps.meta.outputs.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.DOCKER_TAG }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=latest
IMAGE_REPO=casjaysdev/almalinux
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=${IMAGE_VERSION}
CONTAINER_VERSION=USE_DATE
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=casjaysdev/almalinux
org.opencontainers.image.description=Containerized version of casjaysdev/almalinux
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=latest
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
docker.io/casjaysdev/almalinux:latest
docker.io/casjaysdev/almalinux:${{ steps.meta.outputs.DATE_TAG }}

85
.github/workflows/docker.10-dev.yaml vendored Normal file
View File

@@ -0,0 +1,85 @@
name: almalinux-10-dev
on:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: '0 2 2 * *'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.10-dev
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=10-dev
IMAGE_REPO=${{ github.repository }}
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=10-kitten
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=10-dev
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
ghcr.io/${{ github.repository }}:10-dev

85
.github/workflows/docker.10.yaml vendored Normal file
View File

@@ -0,0 +1,85 @@
name: almalinux-10
on:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: '0 2 2 * *'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.10
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=10
IMAGE_REPO=${{ github.repository }}
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=10-kitten
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=10
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
ghcr.io/${{ github.repository }}:10

85
.github/workflows/docker.8-dev.yaml vendored Normal file
View File

@@ -0,0 +1,85 @@
name: almalinux-8-dev
on:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: '0 2 2 * *'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.8-dev
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=8-dev
IMAGE_REPO=${{ github.repository }}
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=8
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=8-dev
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
ghcr.io/${{ github.repository }}:8-dev

85
.github/workflows/docker.8.yaml vendored Normal file
View File

@@ -0,0 +1,85 @@
name: almalinux-8
on:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: '0 2 2 * *'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.8
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=8
IMAGE_REPO=${{ github.repository }}
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=${IMAGE_VERSION}
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=8
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
ghcr.io/${{ github.repository }}:8

85
.github/workflows/docker.9-dev.yaml vendored Normal file
View File

@@ -0,0 +1,85 @@
name: almalinux-9-dev
on:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: '0 2 2 * *'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.9-dev
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=9-dev
IMAGE_REPO=${{ github.repository }}
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=9
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=9-dev
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
ghcr.io/${{ github.repository }}:9-dev

85
.github/workflows/docker.9.yaml vendored Normal file
View File

@@ -0,0 +1,85 @@
name: almalinux-9
on:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: '0 2 2 * *'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.9
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=9
IMAGE_REPO=${{ github.repository }}
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=${IMAGE_VERSION}
CONTAINER_VERSION=
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=9
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
ghcr.io/${{ github.repository }}:9

86
.github/workflows/docker.yaml vendored Normal file
View File

@@ -0,0 +1,86 @@
name: almalinux
on:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: '0 2 2 * *'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
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: Get Meta
id: meta
run: |
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
provenance: false
build-args: |
IMAGE_NAME=almalinux
IMAGE_VERSION=latest
IMAGE_REPO=${{ github.repository }}
PHP_SERVER=almalinux
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
PULL_URL=almalinux
DISTRO_VERSION=${IMAGE_VERSION}
CONTAINER_VERSION=USE_DATE
TIMEZONE=America/New_York
LANGUAGE=en_US.UTF-8
PHP_VERSION=system
NODE_VERSION=system
NODE_MANAGER=system
SERVICE_PORT=
EXPOSE_PORTS=
WWW_ROOT_DIR=/usr/local/share/httpd/default
DEFAULT_FILE_DIR=/usr/local/share/template-files
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
annotations: |
org.opencontainers.image.title=${{ github.repository }}
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
org.opencontainers.image.vendor=CasjaysDev
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
org.opencontainers.image.url=https://github.com/${{ github.repository }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=latest
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.DATE_TAG }}

View File

@@ -68,7 +68,7 @@ ENV HOSTNAME="casjaysdevdocker-almalinux"
USER ${USER}
WORKDIR /root
COPY ./rootfs/usr/local/bin/. /usr/local/bin/
COPY ./dockerfs/usr/local/bin/. /usr/local/bin/
RUN set -e; \
echo "Updating the system and ensuring bash is installed"; \
@@ -116,7 +116,7 @@ RUN echo "Initializing packages before copying files to image"; \
if [ -f "/root/docker/setup/02-packages.sh" ];then echo "Running the packages script";/root/docker/setup/02-packages.sh||{ echo "Failed to execute /root/docker/setup/02-packages.sh" >&2 && exit 10; };echo "Done running the packages script";fi; \
echo ""
COPY ./rootfs/. /
COPY ./dockerfs/. /
COPY ./Dockerfile /root/docker/Dockerfile
RUN echo "Updating system files "; \

View File

@@ -68,7 +68,7 @@ ENV HOSTNAME="casjaysdevdocker-almalinux"
USER ${USER}
WORKDIR /root
COPY ./rootfs/usr/local/bin/. /usr/local/bin/
COPY ./dockerfs/usr/local/bin/. /usr/local/bin/
RUN set -e; \
echo "Updating the system and ensuring bash is installed"; \
@@ -116,7 +116,7 @@ RUN echo "Initializing packages before copying files to image"; \
if [ -f "/root/docker/setup/02-packages.sh" ];then echo "Running the packages script";/root/docker/setup/02-packages.sh||{ echo "Failed to execute /root/docker/setup/02-packages.sh" >&2 && exit 10; };echo "Done running the packages script";fi; \
echo ""
COPY ./rootfs/. /
COPY ./dockerfs/. /
COPY ./Dockerfile.10 /root/docker/Dockerfile
RUN echo "Updating system files "; \

View File

@@ -68,7 +68,7 @@ ENV HOSTNAME="casjaysdevdocker-almalinux"
USER ${USER}
WORKDIR /root
COPY ./rootfs/usr/local/bin/. /usr/local/bin/
COPY ./dockerfs/usr/local/bin/. /usr/local/bin/
RUN set -e; \
echo "Updating the system and ensuring bash is installed"; \
@@ -116,7 +116,7 @@ RUN echo "Initializing packages before copying files to image"; \
if [ -f "/root/docker/setup/02-packages.sh" ];then echo "Running the packages script";/root/docker/setup/02-packages.sh||{ echo "Failed to execute /root/docker/setup/02-packages.sh" >&2 && exit 10; };echo "Done running the packages script";fi; \
echo ""
COPY ./rootfs/. /
COPY ./dockerfs/. /
COPY ./Dockerfile.10-dev /root/docker/Dockerfile
RUN echo "Updating system files "; \

View File

@@ -68,7 +68,7 @@ ENV HOSTNAME="casjaysdevdocker-almalinux"
USER ${USER}
WORKDIR /root
COPY ./rootfs/usr/local/bin/. /usr/local/bin/
COPY ./dockerfs/usr/local/bin/. /usr/local/bin/
RUN set -e; \
echo "Updating the system and ensuring bash is installed"; \
@@ -116,7 +116,7 @@ RUN echo "Initializing packages before copying files to image"; \
if [ -f "/root/docker/setup/02-packages.sh" ];then echo "Running the packages script";/root/docker/setup/02-packages.sh||{ echo "Failed to execute /root/docker/setup/02-packages.sh" >&2 && exit 10; };echo "Done running the packages script";fi; \
echo ""
COPY ./rootfs/. /
COPY ./dockerfs/. /
COPY ./Dockerfile.8 /root/docker/Dockerfile
RUN echo "Updating system files "; \

View File

@@ -66,7 +66,7 @@ ENV HOSTNAME="casjaysdev-almalinux"
USER ${USER}
WORKDIR /root
COPY ./rootfs/usr/local/bin/. /usr/local/bin/
COPY ./dockerfs/usr/local/bin/. /usr/local/bin/
RUN set -e; \
echo "Setting up prerequisites"; \
@@ -123,7 +123,7 @@ RUN echo "Setting up dev system"; \
pkg="$(curl -q -LSsf "https://github.com/pkmgr/centos/raw/main/lists/development.list")"; \
[ -n "$pkg" ] && yum install -yy --skip-broken "$pkg"
COPY ./rootfs/. /
COPY ./dockerfs/. /
COPY ./Dockerfile.8 /root/docker/Dockerfile
RUN echo "Updating system files "; \

View File

@@ -68,7 +68,7 @@ ENV HOSTNAME="casjaysdevdocker-almalinux"
USER ${USER}
WORKDIR /root
COPY ./rootfs/usr/local/bin/. /usr/local/bin/
COPY ./dockerfs/usr/local/bin/. /usr/local/bin/
RUN set -e; \
echo "Updating the system and ensuring bash is installed"; \
@@ -116,7 +116,7 @@ RUN echo "Initializing packages before copying files to image"; \
if [ -f "/root/docker/setup/02-packages.sh" ];then echo "Running the packages script";/root/docker/setup/02-packages.sh||{ echo "Failed to execute /root/docker/setup/02-packages.sh" >&2 && exit 10; };echo "Done running the packages script";fi; \
echo ""
COPY ./rootfs/. /
COPY ./dockerfs/. /
COPY ./Dockerfile.9 /root/docker/Dockerfile
RUN echo "Updating system files "; \

View File

@@ -66,7 +66,7 @@ ENV HOSTNAME="casjaysdev-almalinux"
USER ${USER}
WORKDIR /root
COPY ./rootfs/usr/local/bin/. /usr/local/bin/
COPY ./dockerfs/usr/local/bin/. /usr/local/bin/
RUN set -e; \
echo "Setting up prerequisites"; \
@@ -121,7 +121,7 @@ RUN echo "Initializing packages before copying files to image"; \
if [ -f "/root/docker/setup/02-packages.sh" ];then echo "Running the packages script";/root/docker/setup/02-packages.sh||{ echo "Failed to execute /root/docker/setup/02-packages.sh" >&2 && exit 10; };echo "Done running the packages script";fi; \
echo ""
COPY ./rootfs/. /
COPY ./dockerfs/. /
COPY ./Dockerfile.9 /root/docker/Dockerfile
RUN echo "Updating system files "; \

View File

@@ -21,7 +21,7 @@ dockermgr update os almalinux
```shell
mkdir -p "/var/lib/srv/root/docker/casjaysdev/almalinux/latest"
git clone "https://github.com/dockermgr/almalinux" "$HOME/.local/share/CasjaysDev/dockermgr/almalinux"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/almalinux/rootfs/." "/var/lib/srv/root/docker/casjaysdev/almalinux/latest/"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/almalinux/dockerfs/." "/var/lib/srv/root/docker/casjaysdev/almalinux/latest/"
docker run -d \
--restart always \
--privileged \