diff --git a/.gitea/workflows/docker.10-dev.yaml b/.gitea/workflows/docker.10-dev.yaml index c6d13c0..55a6b07 100644 --- a/.gitea/workflows/docker.10-dev.yaml +++ b/.gitea/workflows/docker.10-dev.yaml @@ -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 + 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 diff --git a/.gitea/workflows/docker.10.yaml b/.gitea/workflows/docker.10.yaml index 1d01832..f5469ed 100644 --- a/.gitea/workflows/docker.10.yaml +++ b/.gitea/workflows/docker.10.yaml @@ -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 + 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 diff --git a/.gitea/workflows/docker.8-dev.yaml b/.gitea/workflows/docker.8-dev.yaml index 0fa9f11..99671b9 100644 --- a/.gitea/workflows/docker.8-dev.yaml +++ b/.gitea/workflows/docker.8-dev.yaml @@ -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 + 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 diff --git a/.gitea/workflows/docker.8.yaml b/.gitea/workflows/docker.8.yaml index 20c0fb9..28909f3 100644 --- a/.gitea/workflows/docker.8.yaml +++ b/.gitea/workflows/docker.8.yaml @@ -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 + 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 diff --git a/.gitea/workflows/docker.9-dev.yaml b/.gitea/workflows/docker.9-dev.yaml index f241dba..2591c49 100644 --- a/.gitea/workflows/docker.9-dev.yaml +++ b/.gitea/workflows/docker.9-dev.yaml @@ -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 + 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 diff --git a/.gitea/workflows/docker.9.yaml b/.gitea/workflows/docker.9.yaml index a29b716..41394cf 100644 --- a/.gitea/workflows/docker.9.yaml +++ b/.gitea/workflows/docker.9.yaml @@ -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 + 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 diff --git a/.gitea/workflows/docker.yaml b/.gitea/workflows/docker.yaml index 850959b..e6f77c2 100644 --- a/.gitea/workflows/docker.yaml +++ b/.gitea/workflows/docker.yaml @@ -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 + 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 }} diff --git a/.github/workflows/docker.10-dev.yaml b/.github/workflows/docker.10-dev.yaml new file mode 100644 index 0000000..c3e84cd --- /dev/null +++ b/.github/workflows/docker.10-dev.yaml @@ -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 + 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 diff --git a/.github/workflows/docker.10.yaml b/.github/workflows/docker.10.yaml new file mode 100644 index 0000000..f35c3a7 --- /dev/null +++ b/.github/workflows/docker.10.yaml @@ -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 + 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 diff --git a/.github/workflows/docker.8-dev.yaml b/.github/workflows/docker.8-dev.yaml new file mode 100644 index 0000000..85681f0 --- /dev/null +++ b/.github/workflows/docker.8-dev.yaml @@ -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 + 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 diff --git a/.github/workflows/docker.8.yaml b/.github/workflows/docker.8.yaml new file mode 100644 index 0000000..38eb50c --- /dev/null +++ b/.github/workflows/docker.8.yaml @@ -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 + 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 diff --git a/.github/workflows/docker.9-dev.yaml b/.github/workflows/docker.9-dev.yaml new file mode 100644 index 0000000..424d543 --- /dev/null +++ b/.github/workflows/docker.9-dev.yaml @@ -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 + 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 diff --git a/.github/workflows/docker.9.yaml b/.github/workflows/docker.9.yaml new file mode 100644 index 0000000..d9e190b --- /dev/null +++ b/.github/workflows/docker.9.yaml @@ -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 + 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 diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..5f6c58b --- /dev/null +++ b/.github/workflows/docker.yaml @@ -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 + 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 }} diff --git a/Dockerfile b/Dockerfile index e39a9ce..5386f2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 "; \ diff --git a/Dockerfile.10 b/Dockerfile.10 index 280b1e7..8f71887 100644 --- a/Dockerfile.10 +++ b/Dockerfile.10 @@ -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 "; \ diff --git a/Dockerfile.10-dev b/Dockerfile.10-dev index b95b138..30e20c8 100644 --- a/Dockerfile.10-dev +++ b/Dockerfile.10-dev @@ -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 "; \ diff --git a/Dockerfile.8 b/Dockerfile.8 index 0e4b71b..116aa91 100644 --- a/Dockerfile.8 +++ b/Dockerfile.8 @@ -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 "; \ diff --git a/Dockerfile.8-dev b/Dockerfile.8-dev index 4b5783e..6aed376 100644 --- a/Dockerfile.8-dev +++ b/Dockerfile.8-dev @@ -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 "; \ diff --git a/Dockerfile.9 b/Dockerfile.9 index 03c455e..97a1fb0 100644 --- a/Dockerfile.9 +++ b/Dockerfile.9 @@ -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 "; \ diff --git a/Dockerfile.9-dev b/Dockerfile.9-dev index 88749c0..445e1f0 100644 --- a/Dockerfile.9-dev +++ b/Dockerfile.9-dev @@ -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 "; \ diff --git a/README.md b/README.md index 33548e3..ae36b83 100644 --- a/README.md +++ b/README.md @@ -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 \ diff --git a/rootfs/root/docker/setup/00-init.sh b/dockerfs/root/docker/setup/00-init.sh similarity index 100% rename from rootfs/root/docker/setup/00-init.sh rename to dockerfs/root/docker/setup/00-init.sh diff --git a/rootfs/root/docker/setup/01-system.sh b/dockerfs/root/docker/setup/01-system.sh similarity index 100% rename from rootfs/root/docker/setup/01-system.sh rename to dockerfs/root/docker/setup/01-system.sh diff --git a/rootfs/root/docker/setup/02-packages.sh b/dockerfs/root/docker/setup/02-packages.sh similarity index 100% rename from rootfs/root/docker/setup/02-packages.sh rename to dockerfs/root/docker/setup/02-packages.sh diff --git a/rootfs/root/docker/setup/03-files.sh b/dockerfs/root/docker/setup/03-files.sh similarity index 100% rename from rootfs/root/docker/setup/03-files.sh rename to dockerfs/root/docker/setup/03-files.sh diff --git a/rootfs/root/docker/setup/04-users.sh b/dockerfs/root/docker/setup/04-users.sh similarity index 100% rename from rootfs/root/docker/setup/04-users.sh rename to dockerfs/root/docker/setup/04-users.sh diff --git a/rootfs/root/docker/setup/05-custom.sh b/dockerfs/root/docker/setup/05-custom.sh similarity index 100% rename from rootfs/root/docker/setup/05-custom.sh rename to dockerfs/root/docker/setup/05-custom.sh diff --git a/rootfs/root/docker/setup/06-post.sh b/dockerfs/root/docker/setup/06-post.sh similarity index 100% rename from rootfs/root/docker/setup/06-post.sh rename to dockerfs/root/docker/setup/06-post.sh diff --git a/rootfs/root/docker/setup/07-cleanup.sh b/dockerfs/root/docker/setup/07-cleanup.sh similarity index 100% rename from rootfs/root/docker/setup/07-cleanup.sh rename to dockerfs/root/docker/setup/07-cleanup.sh diff --git a/rootfs/usr/local/bin/entrypoint.sh b/dockerfs/usr/local/bin/entrypoint.sh similarity index 100% rename from rootfs/usr/local/bin/entrypoint.sh rename to dockerfs/usr/local/bin/entrypoint.sh diff --git a/rootfs/usr/local/bin/pkmgr b/dockerfs/usr/local/bin/pkmgr similarity index 100% rename from rootfs/usr/local/bin/pkmgr rename to dockerfs/usr/local/bin/pkmgr diff --git a/rootfs/usr/local/etc/docker/functions/entrypoint.sh b/dockerfs/usr/local/etc/docker/functions/entrypoint.sh similarity index 100% rename from rootfs/usr/local/etc/docker/functions/entrypoint.sh rename to dockerfs/usr/local/etc/docker/functions/entrypoint.sh diff --git a/rootfs/usr/local/share/template-files/config/.gitkeep b/dockerfs/usr/local/share/template-files/config/.gitkeep similarity index 100% rename from rootfs/usr/local/share/template-files/config/.gitkeep rename to dockerfs/usr/local/share/template-files/config/.gitkeep diff --git a/rootfs/usr/local/share/template-files/config/env/default.sample b/dockerfs/usr/local/share/template-files/config/env/default.sample similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/default.sample rename to dockerfs/usr/local/share/template-files/config/env/default.sample diff --git a/rootfs/usr/local/share/template-files/config/env/examples/00-directory.sh b/dockerfs/usr/local/share/template-files/config/env/examples/00-directory.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/00-directory.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/00-directory.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/addresses.sh b/dockerfs/usr/local/share/template-files/config/env/examples/addresses.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/addresses.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/addresses.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/certbot.sh b/dockerfs/usr/local/share/template-files/config/env/examples/certbot.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/certbot.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/certbot.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/couchdb.sh b/dockerfs/usr/local/share/template-files/config/env/examples/couchdb.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/couchdb.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/couchdb.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/dockerd.sh b/dockerfs/usr/local/share/template-files/config/env/examples/dockerd.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/dockerd.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/dockerd.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/global.sh b/dockerfs/usr/local/share/template-files/config/env/examples/global.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/global.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/global.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/healthcheck.sh b/dockerfs/usr/local/share/template-files/config/env/examples/healthcheck.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/healthcheck.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/healthcheck.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/mariadb.sh b/dockerfs/usr/local/share/template-files/config/env/examples/mariadb.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/mariadb.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/mariadb.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/mongodb.sh b/dockerfs/usr/local/share/template-files/config/env/examples/mongodb.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/mongodb.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/mongodb.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/networking.sh b/dockerfs/usr/local/share/template-files/config/env/examples/networking.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/networking.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/networking.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/other.sh b/dockerfs/usr/local/share/template-files/config/env/examples/other.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/other.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/other.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/php.sh b/dockerfs/usr/local/share/template-files/config/env/examples/php.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/php.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/php.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/postgres.sh b/dockerfs/usr/local/share/template-files/config/env/examples/postgres.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/postgres.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/postgres.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/redis.sh b/dockerfs/usr/local/share/template-files/config/env/examples/redis.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/redis.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/redis.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/services.sh b/dockerfs/usr/local/share/template-files/config/env/examples/services.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/services.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/services.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/ssl.sh b/dockerfs/usr/local/share/template-files/config/env/examples/ssl.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/ssl.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/ssl.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/supabase.sh b/dockerfs/usr/local/share/template-files/config/env/examples/supabase.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/supabase.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/supabase.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/webservers.sh b/dockerfs/usr/local/share/template-files/config/env/examples/webservers.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/webservers.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/webservers.sh diff --git a/rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh b/dockerfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh similarity index 100% rename from rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh rename to dockerfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh diff --git a/rootfs/usr/local/share/template-files/data/.gitkeep b/dockerfs/usr/local/share/template-files/data/.gitkeep similarity index 100% rename from rootfs/usr/local/share/template-files/data/.gitkeep rename to dockerfs/usr/local/share/template-files/data/.gitkeep diff --git a/rootfs/usr/local/share/template-files/defaults/.gitkeep b/dockerfs/usr/local/share/template-files/defaults/.gitkeep similarity index 100% rename from rootfs/usr/local/share/template-files/defaults/.gitkeep rename to dockerfs/usr/local/share/template-files/defaults/.gitkeep