Update test.yml

This commit is contained in:
Peter 2023-07-12 21:57:36 +02:00 committed by GitHub
parent cb45160112
commit 0dc90ac7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 25 deletions

View File

@ -9,26 +9,14 @@ permissions:
contents: read # to fetch code (actions/checkout)
jobs:
targets:
name: Generate targets list from provided bake file
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.targets.outputs.matrix }}
steps:
targets:
name: Generate targets list from provided bake file
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.targets.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
#- name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
uses: actions/checkout@v3
- name: Prepair Image Builds
run: |
@ -47,15 +35,19 @@ targets:
run: |
echo ${{ steps.targets.outputs.matrix }}
needs:
- targets
# 2.0 - Build a matrix strategy from the retrieved target list
strategy:
build:
name: Get targets list and build
runs-on: ubuntu-latest
needs:
- targets
strategy:
fail-fast: true
matrix:
target: ${{ fromJson(needs.targets.outputs.matrix) }}
steps:
- name: Push Images using BuildX Bake
uses: docker/bake-action@v2
with: