mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-11 11:31:16 +00:00
Change Workflow dependency
This commit is contained in:
42
.github/workflows/action_branch.yml
vendored
42
.github/workflows/action_branch.yml
vendored
@@ -44,7 +44,6 @@ jobs:
|
|||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
base:
|
base:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
uses: ./.github/workflows/zzz-reuse-build.yml
|
uses: ./.github/workflows/zzz-reuse-build.yml
|
||||||
with:
|
with:
|
||||||
@@ -60,7 +59,6 @@ jobs:
|
|||||||
|
|
||||||
base-test:
|
base-test:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
- base
|
- base
|
||||||
uses: ./.github/workflows/zzz-reuse-test.yml
|
uses: ./.github/workflows/zzz-reuse-test.yml
|
||||||
@@ -81,10 +79,8 @@ jobs:
|
|||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
mods:
|
mods:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
- base
|
- base
|
||||||
- base-test
|
|
||||||
uses: ./.github/workflows/zzz-reuse-build.yml
|
uses: ./.github/workflows/zzz-reuse-build.yml
|
||||||
with:
|
with:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -99,10 +95,7 @@ jobs:
|
|||||||
|
|
||||||
mods-test:
|
mods-test:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
- base
|
|
||||||
- base-test
|
|
||||||
- mods
|
- mods
|
||||||
uses: ./.github/workflows/zzz-reuse-test.yml
|
uses: ./.github/workflows/zzz-reuse-test.yml
|
||||||
with:
|
with:
|
||||||
@@ -122,12 +115,8 @@ jobs:
|
|||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
prod:
|
prod:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
- base
|
|
||||||
- base-test
|
|
||||||
- mods
|
- mods
|
||||||
- mods-test
|
|
||||||
uses: ./.github/workflows/zzz-reuse-build.yml
|
uses: ./.github/workflows/zzz-reuse-build.yml
|
||||||
with:
|
with:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -142,12 +131,7 @@ jobs:
|
|||||||
|
|
||||||
prod-test:
|
prod-test:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
- base
|
|
||||||
- base-test
|
|
||||||
- mods
|
|
||||||
- mods-test
|
|
||||||
- prod
|
- prod
|
||||||
uses: ./.github/workflows/zzz-reuse-test.yml
|
uses: ./.github/workflows/zzz-reuse-test.yml
|
||||||
with:
|
with:
|
||||||
@@ -167,14 +151,8 @@ jobs:
|
|||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
work:
|
work:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
- base
|
|
||||||
- base-test
|
|
||||||
- mods
|
|
||||||
- mods-test
|
|
||||||
- prod
|
- prod
|
||||||
- prod-test
|
|
||||||
uses: ./.github/workflows/zzz-reuse-build.yml
|
uses: ./.github/workflows/zzz-reuse-build.yml
|
||||||
with:
|
with:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -189,14 +167,7 @@ jobs:
|
|||||||
|
|
||||||
work-test:
|
work-test:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
- base
|
|
||||||
- base-test
|
|
||||||
- mods
|
|
||||||
- mods-test
|
|
||||||
- prod
|
|
||||||
- prod-test
|
|
||||||
- work
|
- work
|
||||||
uses: ./.github/workflows/zzz-reuse-test.yml
|
uses: ./.github/workflows/zzz-reuse-test.yml
|
||||||
with:
|
with:
|
||||||
@@ -216,15 +187,10 @@ jobs:
|
|||||||
# -----------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------
|
||||||
push-image:
|
push-image:
|
||||||
needs:
|
needs:
|
||||||
- params
|
|
||||||
- configure
|
- configure
|
||||||
- base
|
|
||||||
- base-test
|
- base-test
|
||||||
- mods
|
|
||||||
- mods-test
|
- mods-test
|
||||||
- prod
|
|
||||||
- prod-test
|
- prod-test
|
||||||
- work
|
|
||||||
- work-test
|
- work-test
|
||||||
uses: ./.github/workflows/zzz-reuse-deploy-images.yml
|
uses: ./.github/workflows/zzz-reuse-deploy-images.yml
|
||||||
with:
|
with:
|
||||||
@@ -245,14 +211,6 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- params
|
- params
|
||||||
- configure
|
- configure
|
||||||
- base
|
|
||||||
- base-test
|
|
||||||
- mods
|
|
||||||
- mods-test
|
|
||||||
- prod
|
|
||||||
- prod-test
|
|
||||||
- work
|
|
||||||
- work-test
|
|
||||||
- push-image
|
- push-image
|
||||||
uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml
|
uses: ./.github/workflows/zzz-reuse-deploy-manifests.yml
|
||||||
with:
|
with:
|
||||||
|
|||||||
30
.github/workflows/zzz-reuse-test.yml
vendored
30
.github/workflows/zzz-reuse-test.yml
vendored
@@ -110,14 +110,14 @@ jobs:
|
|||||||
name: ${{ steps.set-artifact-name.outputs.base }}
|
name: ${{ steps.set-artifact-name.outputs.base }}
|
||||||
attempt_limit: 20
|
attempt_limit: 20
|
||||||
attempt_delay: 10000
|
attempt_delay: 10000
|
||||||
if: ${{ inputs.flavour == 'mods' }}
|
if: ${{ inputs.flavour == 'base' }}
|
||||||
|
|
||||||
- name: "[Artifact Load] Import base"
|
- name: "[Artifact Load] Import base"
|
||||||
uses: cytopia/shell-command-retry-action@v0.1.2
|
uses: cytopia/shell-command-retry-action@v0.1.2
|
||||||
with:
|
with:
|
||||||
command: |
|
command: |
|
||||||
make load INFILE=${{ steps.set-artifact-name.outputs.base }}
|
make load INFILE=${{ steps.set-artifact-name.outputs.base }}
|
||||||
if: ${{ inputs.flavour == 'mods' }}
|
if: ${{ inputs.flavour == 'base' }}
|
||||||
|
|
||||||
###
|
###
|
||||||
### Download and import mods
|
### Download and import mods
|
||||||
@@ -130,14 +130,14 @@ jobs:
|
|||||||
name: ${{ steps.set-artifact-name.outputs.mods }}
|
name: ${{ steps.set-artifact-name.outputs.mods }}
|
||||||
attempt_limit: 20
|
attempt_limit: 20
|
||||||
attempt_delay: 10000
|
attempt_delay: 10000
|
||||||
if: ${{ inputs.flavour == 'prod' }}
|
if: ${{ inputs.flavour == 'mods' }}
|
||||||
|
|
||||||
- name: "[Artifact Load] Import mods"
|
- name: "[Artifact Load] Import mods"
|
||||||
uses: cytopia/shell-command-retry-action@v0.1.2
|
uses: cytopia/shell-command-retry-action@v0.1.2
|
||||||
with:
|
with:
|
||||||
command: |
|
command: |
|
||||||
make load INFILE=${{ steps.set-artifact-name.outputs.mods }}
|
make load INFILE=${{ steps.set-artifact-name.outputs.mods }}
|
||||||
if: ${{ inputs.flavour == 'prod' }}
|
if: ${{ inputs.flavour == 'mods' }}
|
||||||
|
|
||||||
###
|
###
|
||||||
### Download and import prod
|
### Download and import prod
|
||||||
@@ -150,13 +150,33 @@ jobs:
|
|||||||
name: ${{ steps.set-artifact-name.outputs.prod }}
|
name: ${{ steps.set-artifact-name.outputs.prod }}
|
||||||
attempt_limit: 20
|
attempt_limit: 20
|
||||||
attempt_delay: 10000
|
attempt_delay: 10000
|
||||||
if: ${{ inputs.flavour == 'work' }}
|
if: ${{ inputs.flavour == 'prod' }}
|
||||||
|
|
||||||
- name: "[Artifact Load] Import prod"
|
- name: "[Artifact Load] Import prod"
|
||||||
uses: cytopia/shell-command-retry-action@v0.1.2
|
uses: cytopia/shell-command-retry-action@v0.1.2
|
||||||
with:
|
with:
|
||||||
command: |
|
command: |
|
||||||
make load INFILE=${{ steps.set-artifact-name.outputs.prod }}
|
make load INFILE=${{ steps.set-artifact-name.outputs.prod }}
|
||||||
|
if: ${{ inputs.flavour == 'prod' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Download and import work
|
||||||
|
###
|
||||||
|
- name: "[Artifact Load] Download work"
|
||||||
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
|
with:
|
||||||
|
action: actions/download-artifact@v3
|
||||||
|
with: |
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.work }}
|
||||||
|
attempt_limit: 20
|
||||||
|
attempt_delay: 10000
|
||||||
|
if: ${{ inputs.flavour == 'work' }}
|
||||||
|
|
||||||
|
- name: "[Artifact Load] Import work"
|
||||||
|
uses: cytopia/shell-command-retry-action@v0.1.2
|
||||||
|
with:
|
||||||
|
command: |
|
||||||
|
make load INFILE=${{ steps.set-artifact-name.outputs.work }}
|
||||||
if: ${{ inputs.flavour == 'work' }}
|
if: ${{ inputs.flavour == 'work' }}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user