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: docker.io username: aprimediet password: ${{ secrets.DOCKER_TOKEN }} - name: Build and push 2.8 on php7.4 uses: docker/build-push-action@v5 with: context: . file: Dockerfile.ubi9 build-args: | COMPOSER_VERSION=2.8.4 PHP_VERSION=7.4 push: true tags: | aprimediet/composer:2.8.4-php7.4-ubi9 aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.0 push: true tags: | aprimediet/composer:2.8.4-php8.0-ubi9 aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.1 push: true tags: | aprimediet/composer:2.8.4-php8.1-ubi9 aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.2 push: true tags: | aprimediet/composer:2.8.4-php8.2-ubi9 aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.3 push: true tags: | aprimediet/composer:2.8.4-php8.3-ubi9 aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.4 push: true tags: | aprimediet/composer:2.8.4-php8.4-ubi9 aprimediet/composer:2.8-php8.4-ubi9 aprimediet/composer:2.8-ubi9 aprimediet/composer:ubi9 build-micro: name: Build and push composer on ubi9-micro based 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: docker.io username: aprimediet password: ${{ secrets.DOCKER_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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=7.4 push: true tags: | aprimediet/composer:2.8.4-php7.4-ubi9-micro aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.0 push: true tags: | aprimediet/composer:2.8.4-php8.0-ubi9-micro aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.1 push: true tags: | aprimediet/composer:2.8.4-php8.1-ubi9-micro aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.2 push: true tags: | aprimediet/composer:2.8.4-php8.2-ubi9-micro aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.3 push: true tags: | aprimediet/composer:2.8.4-php8.3-ubi9-micro aprimediet/composer: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: | COMPOSER_VERSION=2.8.4 PHP_VERSION=8.4 push: true tags: | aprimediet/composer:2.8.4-php8.4-ubi9-micro aprimediet/composer:2.8-php8.4-ubi9-micro aprimediet/composer:2.8-ubi9-micro aprimediet/composer:ubi9-micro