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

216 lines
6.7 KiB
YAML

name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image (root-user)
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 Winter Access Git Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Build and push 5.6 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
PHP_VERSION=5.6
ALPINE_VERSION=3.5
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:5.6-alpine
- name: Build and push 7.2 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
PHP_VERSION=7.2
ALPINE_VERSION=3.9
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:7.2-alpine
- name: Build and push 7.3 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
PHP_VERSION=7.3
ALPINE_VERSION=3.10
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:7.3-alpine
- name: Build and push 7.4 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
PHP_VERSION=7.4
ALPINE_VERSION=3.13
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:7.4-alpine
- name: Build and push 8.0 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
PHP_VERSION=8.0
ALPINE_VERSION=3.16
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:8.0-alpine
- name: Build and push 8.1 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
PHP_VERSION=8.1
ALPINE_VERSION=3.18
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:8.1-alpine
- name: Build and push 8.2 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
PHP_VERSION=8.2
ALPINE_VERSION=3.18
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:8.2-alpine
- name: Build and push 8.3 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
PHP_VERSION=8.3
ALPINE_VERSION=3.19
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:8.3-alpine
git.winteraccess.id/${{ gitea.repository }}:latest-alpine
git.winteraccess.id/${{ gitea.repository }}:alpine
build-rootless:
name: Build and push image (rootless)
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 Winter Access Git Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Build and push 5.6 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-rootless
build-args: |
PHP_VERSION=5.6
ALPINE_VERSION=3.5
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:5.6-alpine-rootless
- name: Build and push 7.2 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-rootless
build-args: |
PHP_VERSION=7.2
ALPINE_VERSION=3.9
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:7.2-alpine-rootless
- name: Build and push 7.3 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-rootless
build-args: |
PHP_VERSION=7.3
ALPINE_VERSION=3.10
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:7.3-alpine-rootless
- name: Build and push 7.4 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-rootless
build-args: |
PHP_VERSION=7.4
ALPINE_VERSION=3.13
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:7.4-alpine-rootless
- name: Build and push 8.0 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-rootless
build-args: |
PHP_VERSION=8.0
ALPINE_VERSION=3.16
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:8.0-alpine-rootless
- name: Build and push 8.1 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-rootless
build-args: |
PHP_VERSION=8.1
ALPINE_VERSION=3.18
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:8.1-alpine-rootless
- name: Build and push 8.2 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-rootless
build-args: |
PHP_VERSION=8.2
ALPINE_VERSION=3.18
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:8.2-alpine-rootless
- name: Build and push 8.3 Images
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine-rootless
build-args: |
PHP_VERSION=8.3
ALPINE_VERSION=3.19
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:8.3-alpine-rootless
git.winteraccess.id/${{ gitea.repository }}:latest-alpine-rootless
git.winteraccess.id/${{ gitea.repository }}:alpine-rootless