Fix Workflow yaml
This commit is contained in:
parent
d58467ecff
commit
23a0a8e6fe
1 changed files with 7 additions and 7 deletions
|
@ -32,16 +32,16 @@ jobs:
|
||||||
|
|
||||||
build_matrix:
|
build_matrix:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
if: success('build_act')
|
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}
|
||||||
|
needs: [build_act]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
name:
|
name: [php]
|
||||||
- php
|
|
||||||
include:
|
include:
|
||||||
- name: PHP builds
|
- name: PHP builds
|
||||||
if: matrix.name == 'php'
|
if: matrix.name == 'php'
|
||||||
matrix:
|
matrix:
|
||||||
versions: [7.4, 8.0, 8.1, 8.2]
|
version: [7.4, 8.0, 8.1, 8.2]
|
||||||
steps:
|
steps:
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
run: curl -fsSL https://get.docker.com | sh
|
run: curl -fsSL https://get.docker.com | sh
|
||||||
|
@ -55,13 +55,13 @@ jobs:
|
||||||
registry: git.euph.dev
|
registry: git.euph.dev
|
||||||
username: ${{ secrets.DEPLOY_USER }}
|
username: ${{ secrets.DEPLOY_USER }}
|
||||||
password: ${{ secrets.DEPLOY_SECRET }}
|
password: ${{ secrets.DEPLOY_SECRET }}
|
||||||
- name: Build and push ${{ matrix.name}}:${{ matrix.versions }}
|
- name: Build and push ${{ matrix.name }}:${{ matrix.version }}
|
||||||
uses: 'https://git.euph.dev/actions/docker-build-push@v5'
|
uses: 'https://git.euph.dev/actions/docker-build-push@v5'
|
||||||
with:
|
with:
|
||||||
context: "{{defaultContext}}:images/actions/${{ matrix.name }}"
|
context: "{{defaultContext}}:images/actions/${{ matrix.name }}"
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
git.euph.dev/actions/runner-${{ matrix.name }}-${{ matrix.versions }}:latest
|
git.euph.dev/actions/runner-${{ matrix.name }}-${{ matrix.version }}:latest
|
||||||
env:
|
env:
|
||||||
PACKAGE_VERSION: ${{ matrix.versions }}
|
PACKAGE_VERSION: ${{ matrix.version }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue