Fix Yaml
All checks were successful
CI / build_act (push) Successful in 2m40s
CI / build_php (push) Has been skipped

This commit is contained in:
Snoweuph 2024-03-03 17:20:49 +01:00
parent 23a0a8e6fe
commit 75e3347d4c
Signed by: Snoweuph
GPG key ID: A494330694B208EF

View file

@ -30,18 +30,13 @@ jobs:
tags: | tags: |
git.euph.dev/actions/runner-basic:latest git.euph.dev/actions/runner-basic:latest
build_matrix: build_php:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
if: ${{ always() && contains(join(needs.*.result, ','), 'success') }} if: ${{ always() && contains(join(needs.*.result, ','), 'success') }}
needs: [build_act] needs: [build_act]
strategy: strategy:
matrix: matrix:
name: [php] version: [7.4, 8.0, 8.1, 8.2]
include:
- name: PHP builds
if: matrix.name == 'php'
matrix:
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 +50,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.version }} - name: Build and push php:${{ 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/php"
push: true push: true
tags: | tags: |
git.euph.dev/actions/runner-${{ matrix.name }}-${{ matrix.version }}:latest git.euph.dev/actions/runner-php-${{ matrix.version }}:latest
env: env:
PACKAGE_VERSION: ${{ matrix.version }} PACKAGE_VERSION: ${{ matrix.version }}