-
Notifications
You must be signed in to change notification settings - Fork 59
30 lines (27 loc) · 1.02 KB
/
docker.yml
File metadata and controls
30 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: PHPQA Docker
# `push tag && master branch` is complicated... (checkout + fetch-depth:0 + find git branch from detached state)
# https://dh1tw.de/2019/12/real-life-ci/cd-pipelines-with-github-actions/#insufficient-filtering
# Release build is not visible from commit, but it's better than manually building docker images
# https://stackoverflow.com/a/59894223, https://stackoverflow.com/a/57983436
on:
release:
types: [created]
jobs:
phpqa:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build docker
env:
CI_GIT_REF: ${{ github.ref }}
CI_COMMIT_SHA: ${{ github.sha }}
DOCKER_USER: ${{ github.actor }}
DOCKER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REGISTRY: ghcr.io
run: |
PHP_VERSION=7.2 .docker/build-image
PHP_VERSION=8.1 .docker/build-image
PHP_VERSION=8.2 .docker/build-image
PHP_VERSION=8.3 .docker/build-image
PHP_VERSION=8.4 .docker/build-image
PHP_VERSION=8.5 .docker/build-image