From 514dab4eab719fb3a2af826e16d0c559e25c4385 Mon Sep 17 00:00:00 2001 From: Muhamad Aditya Prima Date: Sat, 14 Dec 2024 01:22:20 +0700 Subject: [PATCH] Added workflow for winter registry --- .gitea/workflows/ubi9-winter.yaml | 344 ++++++++++++++++++++++++++++++ 1 file changed, 344 insertions(+) create mode 100644 .gitea/workflows/ubi9-winter.yaml diff --git a/.gitea/workflows/ubi9-winter.yaml b/.gitea/workflows/ubi9-winter.yaml new file mode 100644 index 0000000..99e760b --- /dev/null +++ b/.gitea/workflows/ubi9-winter.yaml @@ -0,0 +1,344 @@ +name: Build and Push ubi9 PHP Image +on: + push: + branches: + - master + +jobs: + build: + name: Build and push ubi9 image to winter registry + runs-on: ubuntu-latest + container: + image: ghcr.io/catthehacker/ubuntu:act-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.winteraccess.id + username: aprimediet + password: ${{ secrets.DOCKER_TOKEN }} + - name: Build and push 7.4 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9 + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=7.4 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:7.4-ubi9 + - name: Build and push 8.0 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9 + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.0 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.0-ubi9 + - name: Build and push 8.1 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9 + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.1 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.1-ubi9 + - name: Build and push 8.2 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9 + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.2 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.2-ubi9 + - name: Build and push 8.3 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9 + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.3 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.3-ubi9 + - name: Build and push 8.4 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9 + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.4 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.4-ubi9 + git.winteraccess.id/${{ gitea.repository }}:8-ubi9 + git.winteraccess.id/${{ gitea.repository }}:ubi9 + build-micro: + name: Build and push ubi9-micro image + runs-on: ubuntu-latest + needs: + - build + container: + image: ghcr.io/catthehacker/ubuntu:act-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.winteraccess.id + username: aprimediet + password: ${{ secrets.DOCKER_TOKEN }} + - name: Build and push 7.4 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=7.4 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:7.4-ubi9-micro + - name: Build and push 8.0 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.0 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.0-ubi9-micro + - name: Build and push 8.1 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.1 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.1-ubi9-micro + - name: Build and push 8.2 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.2 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.2-ubi9-micro + - name: Build and push 8.3 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.3 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.3-ubi9-micro + - name: Build and push 8.4 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.4 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.4-ubi9-micro + git.winteraccess.id/${{ gitea.repository }}:8-ubi9-micro + git.winteraccess.id/${{ gitea.repository }}:ubi9-micro + build-apache: + name: Build and push ubi9 apache image + runs-on: ubuntu-latest + needs: + - build + container: + image: ghcr.io/catthehacker/ubuntu:act-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.winteraccess.id + username: aprimediet + password: ${{ secrets.DOCKER_TOKEN }} + - name: Build and push 7.4 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=7.4 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:7.4-apache-ubi9 + git.winteraccess.id/${{ gitea.repository }}:7-apache-ubi9 + - name: Build and push 8.0 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.0 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.0-apache-ubi9 + - name: Build and push 8.1 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.1 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.1-apache-ubi9 + - name: Build and push 8.2 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.2 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.2-apache-ubi9 + - name: Build and push 8.3 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.3 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.3-apache-ubi9 + - name: Build and push 8.4 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.4 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.4-apache-ubi9 + git.winteraccess.id/${{ gitea.repository }}:8-apache-ubi9 + git.winteraccess.id/${{ gitea.repository }}:apache-ubi9 + build-apache-micro: + name: Build and push ubi9-micro image + runs-on: ubuntu-latest + needs: + - build + - build-micro + - build-apache + container: + image: ghcr.io/catthehacker/ubuntu:act-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.winteraccess.id + username: aprimediet + password: ${{ secrets.DOCKER_TOKEN }} + - name: Build and push 7.4 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=7.4 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:7.4-apache-ubi9-micro + - name: Build and push 8.0 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.0 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.0-apache-ubi9-micro + - name: Build and push 8.1 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.1 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.1-apache-ubi9-micro + - name: Build and push 8.2 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.2 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.2-apache-ubi9-micro + - name: Build and push 8.3 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.3 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.3-apache-ubi9-micro + - name: Build and push 8.4 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile.ubi9-micro-apache + build-args: | + REGISTRY_URL=git.winteraccess.id/docker + PHP_VERSION=8.4 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:8.4-apache-ubi9-micro + git.winteraccess.id/${{ gitea.repository }}:8-apache-ubi9-micro + git.winteraccess.id/${{ gitea.repository }}:apache-ubi9-micro \ No newline at end of file