Update test.yml
This commit is contained in:
parent
cb45160112
commit
0dc90ac7fc
|
@ -9,27 +9,15 @@ permissions:
|
||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
targets:
|
targets:
|
||||||
name: Generate targets list from provided bake file
|
name: Generate targets list from provided bake file
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.targets.outputs.matrix }}
|
matrix: ${{ steps.targets.outputs.matrix }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
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 }}
|
|
||||||
|
|
||||||
- name: Prepair Image Builds
|
- name: Prepair Image Builds
|
||||||
run: |
|
run: |
|
||||||
cp -v helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.preride.yml
|
cp -v helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.preride.yml
|
||||||
|
@ -47,15 +35,19 @@ targets:
|
||||||
run: |
|
run: |
|
||||||
echo ${{ steps.targets.outputs.matrix }}
|
echo ${{ steps.targets.outputs.matrix }}
|
||||||
|
|
||||||
needs:
|
|
||||||
- targets
|
|
||||||
|
|
||||||
# 2.0 - Build a matrix strategy from the retrieved target list
|
build:
|
||||||
strategy:
|
name: Get targets list and build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- targets
|
||||||
|
|
||||||
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
target: ${{ fromJson(needs.targets.outputs.matrix) }}
|
target: ${{ fromJson(needs.targets.outputs.matrix) }}
|
||||||
|
|
||||||
|
steps:
|
||||||
- name: Push Images using BuildX Bake
|
- name: Push Images using BuildX Bake
|
||||||
uses: docker/bake-action@v2
|
uses: docker/bake-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue