Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Derschatta committed Nov 24, 2024
2 parents 0c5a561 + 96bdd27 commit 61b8ed4
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 48 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build-php-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
on:
workflow_call:
inputs:
version:
required: true
type: string
debug:
required: false
type: boolean
default: true
cron:
required: false
type: boolean
default: true
multiarch:
required: false
type: boolean
default: true

jobs:
build-php-image:
name: Build PHP ${{ inputs.version }} image
uses: ./.github/workflows/build-image.yml
with:
image: php${{ inputs.version }}
context: ./php/php${{ inputs.version }}
multiarch: ${{ inputs.multiarch }}
secrets: inherit

build-php-debug-image:
name: Build PHP ${{ inputs.version }} debug image
if: ${{ inputs.debug == true }}
needs: build-php-image
uses: ./.github/workflows/build-image.yml
with:
image: php${{ inputs.version }}-debug
context: ./php/php${{ inputs.version }}-debug
multiarch: ${{ inputs.multiarch }}
secrets: inherit

build-php-cron-image:
name: Build cron image
if: ${{ inputs.cron == true }}
needs: build-php-image
uses: ./.github/workflows/build-image.yml
with:
image: php${{ inputs.version }}-cron
context: ./php/php${{ inputs.version }}-cron
multiarch: ${{ inputs.multiarch }}
secrets: inherit
40 changes: 19 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,37 +36,35 @@ jobs:
secrets: inherit

build-php-images:
name: Build PHP base images
name: Build PHP images
uses: ./.github/workflows/build-php-images.yml
strategy:
fail-fast: false
matrix:
version: [53, 54, 55, 56, 70, 71, 72, 73, 80, 81, 82, 83]
uses: ./.github/workflows/build-image.yml
version: [73, 74, 80, 81, 82, 83]
with:
image: php${{ matrix.version }}
context: ./php/php${{ matrix.version }}
version: ${{ matrix.version }}
secrets: inherit

build-php-debug-images:
name: Build PHP debug images
needs: build-php-images
strategy:
matrix:
version: [53, 54, 55, 56, 70, 71, 72, 73, 80, 81, 82, 83]
build-legacy-php-base-image:
name: Build legacy PHP base image
uses: ./.github/workflows/build-image.yml
with:
image: php${{ matrix.version }}-debug
context: ./php/php${{ matrix.version }}-debug
image: php-base
context: ./php/base
multiarch: false
secrets: inherit

build-php-cron-images:
name: Build PHP cron images
needs: build-php-images
build-legacy-php-images:
name: Build legacy PHP images
needs: build-legacy-php-base-image
uses: ./.github/workflows/build-php-images.yml
strategy:
fail-fast: false
matrix:
# Note: no cron container for v5.3
version: [54, 55, 56, 70, 71, 72, 73, 80, 81, 82, 83]
uses: ./.github/workflows/build-image.yml
version: [53, 54, 55, 56, 70, 71, 72]
with:
image: php${{ matrix.version }}-cron
context: ./php/php${{ matrix.version }}-cron
version: ${{ matrix.version }}
cron: ${{ matrix.version != 53 }} # 5.3 doesn't have a cron container
multiarch: false
secrets: inherit
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ mutagen.yml.lock
/custom/*.yml
/custom/*.yaml
/tools/.update
.idea/
.idea/
.vscode/
.DS_Store
Thumbs.db
53 changes: 27 additions & 26 deletions compose/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -34,7 +34,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand All @@ -52,7 +52,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -74,7 +74,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand Down Expand Up @@ -104,7 +104,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -126,7 +126,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand Down Expand Up @@ -156,7 +156,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -178,7 +178,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand Down Expand Up @@ -208,7 +208,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -230,7 +230,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand Down Expand Up @@ -260,7 +260,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -282,7 +282,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand Down Expand Up @@ -312,7 +312,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -335,7 +335,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand Down Expand Up @@ -365,7 +365,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -388,7 +388,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand Down Expand Up @@ -418,7 +418,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -441,7 +441,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand Down Expand Up @@ -470,7 +470,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand All @@ -493,7 +493,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand All @@ -520,7 +520,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand Down Expand Up @@ -553,7 +553,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand All @@ -570,7 +570,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand Down Expand Up @@ -603,7 +603,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
Expand All @@ -620,7 +620,7 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
depends_on:
Expand Down Expand Up @@ -653,12 +653,13 @@ services:
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- totara-data:${REMOTE_DATA}
- $HOME/.bash_history:/root/.bash_history
- bash-history:/root/.bash_history
- zsh-history:/root/.zsh_history
- ./shell:/root/custom_shell
networks:
- totara

volumes:
totara-data:
bash-history:
zsh-history:

0 comments on commit 61b8ed4

Please sign in to comment.