🗃️ 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 }}