mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2026-01-10 18:04:43 +00:00
Test manifest
This commit is contained in:
130
.github/workflows/aaa-build.yml
vendored
130
.github/workflows/aaa-build.yml
vendored
@@ -15,14 +15,19 @@ on:
|
||||
|
||||
jobs:
|
||||
|
||||
# (1/2) Determine repository params
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# (1/8) Determine parameter settings
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
params:
|
||||
uses: ./.github/workflows/aaa-reuse-params.yml
|
||||
|
||||
# (1/2) Configure Build and Deploy
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# (2/8) Configure Build and Deploy Matrices
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
configure:
|
||||
needs: [params]
|
||||
uses: ./.github/workflows/aaa-reuse-configure.yml
|
||||
uses: ./.github/workflows/aaa-reuse-configure.yml
|
||||
with:
|
||||
enabled: true
|
||||
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
|
||||
@@ -32,23 +37,11 @@ jobs:
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
# (2/2) Build 'base'
|
||||
deploy-images:
|
||||
needs: [params, configure]
|
||||
uses: ./.github/workflows/aaa-reuse-deploy-images.yml
|
||||
with:
|
||||
enabled: true
|
||||
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
|
||||
build_matrix: ${{ needs.configure.outputs.matrix_build }}
|
||||
has_refs: ${{ needs.configure.outputs.has_refs }}
|
||||
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
||||
secrets:
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
# (2/2) Build 'base'
|
||||
deploy-manifests:
|
||||
needs: [params, configure, deploy-images]
|
||||
# FIXME: REMOVE
|
||||
push-manifest-test:
|
||||
needs:
|
||||
- params
|
||||
- configure
|
||||
uses: ./.github/workflows/aaa-reuse-deploy-manifests.yml
|
||||
with:
|
||||
enabled: true
|
||||
@@ -61,10 +54,13 @@ jobs:
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
|
||||
# (2/2) Build 'base'
|
||||
base:
|
||||
needs: [params, configure]
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# (3/8) Build & Test base
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
build-base:
|
||||
needs:
|
||||
- params
|
||||
- configure
|
||||
uses: ./.github/workflows/aaa-reuse-build.yml
|
||||
with:
|
||||
enabled: true
|
||||
@@ -77,9 +73,15 @@ jobs:
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
# (2/2) Build 'mods'
|
||||
mods:
|
||||
needs: [params, configure, base]
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# (4/8) Build & Test mods
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
build-mods:
|
||||
needs:
|
||||
- params
|
||||
- configure
|
||||
- build-base
|
||||
uses: ./.github/workflows/aaa-reuse-build.yml
|
||||
with:
|
||||
enabled: true
|
||||
@@ -92,9 +94,16 @@ jobs:
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
# (2/2) Build 'mods'
|
||||
prod:
|
||||
needs: [params, configure, base, mods]
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# (5/8) Build & Test prod
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
build-prod:
|
||||
needs:
|
||||
- params
|
||||
- configure
|
||||
- build-base
|
||||
- build-mods
|
||||
uses: ./.github/workflows/aaa-reuse-build.yml
|
||||
with:
|
||||
enabled: true
|
||||
@@ -108,9 +117,16 @@ jobs:
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
|
||||
# (2/2) Build 'mods'
|
||||
work:
|
||||
needs: [params, configure, base, mods, prod]
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# (6/8) Build & Test work
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
build-work:
|
||||
needs:
|
||||
- params
|
||||
- configure
|
||||
- build-base
|
||||
- build-mods
|
||||
- build-prod
|
||||
uses: ./.github/workflows/aaa-reuse-build.yml
|
||||
with:
|
||||
enabled: true
|
||||
@@ -122,3 +138,51 @@ jobs:
|
||||
secrets:
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# (7/8) Push images
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
push-image:
|
||||
needs:
|
||||
- params
|
||||
- configure
|
||||
- build-base
|
||||
- build-mods
|
||||
- build-prod
|
||||
- build-work
|
||||
uses: ./.github/workflows/aaa-reuse-deploy-images.yml
|
||||
with:
|
||||
enabled: true
|
||||
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
|
||||
build_matrix: ${{ needs.configure.outputs.matrix_build }}
|
||||
has_refs: ${{ needs.configure.outputs.has_refs }}
|
||||
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
||||
secrets:
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# (8/8) Push Manifests
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
push-manifest:
|
||||
needs:
|
||||
- params
|
||||
- configure
|
||||
- build-base
|
||||
- build-mods
|
||||
- build-prod
|
||||
- build-work
|
||||
- push-image
|
||||
uses: ./.github/workflows/aaa-reuse-deploy-manifests.yml
|
||||
with:
|
||||
enabled: true
|
||||
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
|
||||
deploy_matrix: ${{ needs.configure.outputs.matrix_deploy }}
|
||||
params_matrix: ${{ needs.params.outputs.matrix }}
|
||||
has_refs: ${{ needs.configure.outputs.has_refs }}
|
||||
artifact_prefix: ${{ needs.configure.outputs.artifact_prefix }}
|
||||
secrets:
|
||||
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
|
||||
26
.github/workflows/aaa-reuse-build.yml
vendored
26
.github/workflows/aaa-reuse-build.yml
vendored
@@ -45,32 +45,8 @@ jobs:
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# JOB: BUILD
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
debug:
|
||||
name: debug
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Show inputs"
|
||||
run: |
|
||||
echo "enabled=${{ inputs.enabled }}"
|
||||
echo
|
||||
|
||||
echo "can_deploy=${{ inputs.can_deploy }}"
|
||||
echo
|
||||
|
||||
echo "build_matrix=${{ inputs.build_matrix }}"
|
||||
echo
|
||||
|
||||
echo "has_refs=${{ inputs.has_refs }}"
|
||||
echo
|
||||
|
||||
echo "artifact_prefix=${{ inputs.artifact_prefix }}"
|
||||
echo
|
||||
|
||||
echo "flavour=${{ inputs.flavour }}"
|
||||
echo
|
||||
|
||||
build:
|
||||
name: Build ${{ matrix.name }}-${{ matrix.version }}-${{ inputs.flavour }} (${{ matrix.arch }}) ${{ matrix.refs }}
|
||||
name: ${{ matrix.name }}-${{ matrix.version }}-${{ inputs.flavour }} (${{ matrix.arch }}) ${{ matrix.refs }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
33
.github/workflows/aaa-reuse-deploy-images.yml
vendored
33
.github/workflows/aaa-reuse-deploy-images.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build multi-arch images
|
||||
name: Deploy multi-arch images
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
@@ -38,35 +38,8 @@ on:
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
# JOB: BUILD
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
debug:
|
||||
name: debug
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Show inputs"
|
||||
run: |
|
||||
echo "enabled=${{ inputs.enabled }}"
|
||||
echo
|
||||
|
||||
echo "can_deploy=${{ inputs.can_deploy }}"
|
||||
echo
|
||||
|
||||
echo "build_matrix=${{ inputs.build_matrix }}"
|
||||
echo
|
||||
|
||||
echo "has_refs=${{ inputs.has_refs }}"
|
||||
echo
|
||||
|
||||
echo "artifact_prefix=${{ inputs.artifact_prefix }}"
|
||||
echo
|
||||
|
||||
echo "flavour=${{ inputs.flavour }}"
|
||||
echo
|
||||
|
||||
build:
|
||||
name: Build ${{ matrix.name }}-${{ matrix.version }}-${{ inputs.flavour }} (${{ matrix.arch }}) ${{ matrix.refs }}
|
||||
deploy:
|
||||
name: ${{ matrix.name }}-${{ matrix.version }}-${{ inputs.flavour }} (${{ matrix.arch }}) ${{ matrix.refs }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
@@ -47,7 +47,7 @@ jobs:
|
||||
# JOB (3/3): DEPLOY
|
||||
# -----------------------------------------------------------------------------------------------
|
||||
deploy:
|
||||
name: Deploy ${{ matrix.name }}-${{ matrix.version }} (${{ matrix.flavour }}) ${{ matrix.refs }}
|
||||
name: ${{ matrix.name }}-${{ matrix.version }} (${{ matrix.flavour }}) ${{ matrix.refs }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
Reference in New Issue
Block a user