mirror of
https://github.com/bckelley/phpmyadmin-docker-lightweight.git
synced 2026-08-24 03:24:11 -05:00
57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
# Alexander Tebiev - https://github.com/beeyev
|
|
name: Build Test Docker Images
|
|
|
|
on:
|
|
pull_request:
|
|
types: [labeled]
|
|
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
initialization:
|
|
name: Initialization
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
if: contains(github.event.label.name, 'make-test-build')
|
|
# if: |
|
|
# (github.event.action == 'labeled' && github.event.label.name == 'make-test-build') ||
|
|
# (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'make-test-build'))
|
|
steps:
|
|
- name: Sticky Pull Request Comment
|
|
uses: marocchino/sticky-pull-request-comment@v2
|
|
with:
|
|
message: |
|
|
> [Building test docker images...](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
|
|
|
|
docker-image-deploy:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
SOURCE_IMAGE_VERSION: [ '5.2-fpm-alpine' ]
|
|
TARGET_IMAGE_VERSION: [ 'test' ]
|
|
uses: ./.github/workflows/callable-build-docker-image.yml
|
|
name: Build Test Docker Images / ${{ matrix.baseDist }}-test
|
|
if: contains(github.event.label.name, 'make-test-build')
|
|
with:
|
|
BASE_IMAGE_VERSION: ${{ matrix.SOURCE_IMAGE_VERSION }}
|
|
DOCKER_REGISTRY_IMAGE: ghcr.io/beeyev/phpmyadmin-docker-lightweight:${{ matrix.TARGET_IMAGE_VERSION }}
|
|
DOCKERFILE_PATH: ./docker/Dockerfile
|
|
secrets: inherit
|
|
|
|
finalize:
|
|
name: Finalize
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
needs: docker-image-deploy
|
|
steps:
|
|
- name: Remove `test-build` label
|
|
uses: actions-ecosystem/action-remove-labels@v1
|
|
with:
|
|
labels: make-test-build
|