This repository has been archived on 2024-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
composer/.gitea/workflows/alpine-winter.yaml

131 lines
4.5 KiB
YAML

name: Build and Push Alpine based Composer Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push composer on alpine 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.2 on php5.6
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-php5
build-args: |
COMPOSER_VERSION=2.2.25
PHP_VERSION=5.6
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.2.25-php5.6-alpine
git.winteraccess.id/${{ gitea.repository }}:2.2-php5.6-alpine
- name: Build and push 2.8 on php7.2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-php7
build-args: |
COMPOSER_VERSION=2.8.4
PHP_VERSION=7.2
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php7.2-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-php7.2-alpine
- name: Build and push 2.8 on php7.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-php7
build-args: |
COMPOSER_VERSION=2.8.4
PHP_VERSION=7.3
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php7.3-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-php7.3-alpine
- name: Build and push 2.8 on php7.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-php7
build-args: |
COMPOSER_VERSION=2.8.4
PHP_VERSION=7.4
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php7.4-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-php7.4-alpine
- name: Build and push 2.8 on php8.0
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
COMPOSER_VERSION=2.8.4
PHP_VERSION=8.0
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.8.0-php8.0-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.0-alpine
- name: Build and push 2.8 on php8.1
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
COMPOSER_VERSION=2.8.4
PHP_VERSION=8.1
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.1-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.1-alpine
- name: Build and push 2.8 on php8.2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
COMPOSER_VERSION=2.8.4
PHP_VERSION=8.2
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.2-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.2-alpine
- name: Build and push 2.8 on php8.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
COMPOSER_VERSION=2.8.4
PHP_VERSION=8.3
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.3-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.3-alpine
- name: Build and push 2.8 on php8.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
COMPOSER_VERSION=2.8.4
PHP_VERSION=8.4
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:2.8.4-php8.4-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-php8.4-alpine
git.winteraccess.id/${{ gitea.repository }}:2.8-alpine
git.winteraccess.id/${{ gitea.repository }}:alpine