195 lines
7.0 KiB
YAML
195 lines
7.0 KiB
YAML
name: Build and Push UBI9 based Composer Image
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and push composer on ubi9 based image
|
|
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: ${{ vars.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
- name: Build and push 2.8 on php7.4
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=7.4
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php7.4-ubi9
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php7.4-ubi9
|
|
- name: Build and push 2.8 on php8.0
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.0
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.0-ubi9
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.0-ubi9
|
|
- name: Build and push 2.8 on php8.1
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.1
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.1-ubi9
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.1-ubi9
|
|
- name: Build and push 2.8 on php8.2
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.2
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.2-ubi9
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.2-ubi9
|
|
- name: Build and push 2.8 on php8.3
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.3
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.3-ubi9
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.3-ubi9
|
|
- name: Build and push 2.8 on php8.4
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.4
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.4-ubi9
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.4-ubi9
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-ubi9
|
|
git.winteraccess.id/${{ gitea.repository }}:ubi9
|
|
build-micro:
|
|
name: Build and push composer on ubi9 based image
|
|
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: ${{ vars.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
- name: Build and push 2.8 on php7.4 ubi9-micro
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9-micro
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=7.4
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php7.4-ubi9-micro
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php7.4-ubi9-micro
|
|
- name: Build and push 2.8 on php8.0 ubi9-micro
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9-micro
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.0
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.0-ubi9-micro
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.0-ubi9-micro
|
|
- name: Build and push 2.8 on php8.1 ubi9-micro
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9-micro
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.1
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.1-ubi9-micro
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.1-ubi9-micro
|
|
- name: Build and push 2.8 on php8.2 ubi9-micro
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9-micro
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.2
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.2-ubi9-micro
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.2-ubi9-micro
|
|
- name: Build and push 2.8 on php8.3 ubi9-micro
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9-micro
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.3
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.3-ubi9-micro
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.3-ubi9-micro
|
|
- name: Build and push 2.8 on php8.4 ubi9-micro
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.ubi9-micro
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
COMPOSER_VERSION=2.8.4
|
|
PHP_VERSION=8.4
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.4-ubi9-micro
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.4-ubi9-micro
|
|
git.winteraccess.id/${{ gitea.repository }}:2.8-ubi9-micro
|
|
git.winteraccess.id/${{ gitea.repository }}:ubi9-micro |