-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit ee92851.
- Loading branch information
1 parent
d658220
commit c0fa17f
Showing
2 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ on: | |
|
||
jobs: | ||
build_and_push_images: | ||
runs-on: "${{ matrix.os }}" | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
@@ -38,65 +38,83 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, otel-linux-arm64] | ||
file_tag: | ||
- file: ./src/accountingservice/Dockerfile | ||
tag_suffix: accountingservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/adservice/Dockerfile | ||
tag_suffix: adservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/cartservice/src/Dockerfile | ||
tag_suffix: cartservice | ||
context: ./ | ||
setup-qemu: false | ||
- file: ./src/checkoutservice/Dockerfile | ||
tag_suffix: checkoutservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/currencyservice/Dockerfile | ||
tag_suffix: currencyservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/emailservice/Dockerfile | ||
tag_suffix: emailservice | ||
context: ./src/emailservice | ||
setup-qemu: true | ||
- file: ./src/frauddetectionservice/Dockerfile | ||
tag_suffix: frauddetectionservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/frontend/Dockerfile | ||
tag_suffix: frontend | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/frontendproxy/Dockerfile | ||
tag_suffix: frontendproxy | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/frontend/Dockerfile.cypress | ||
tag_suffix: frontend-tests | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/imageprovider/Dockerfile | ||
tag_suffix: imageprovider | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/kafka/Dockerfile | ||
tag_suffix: kafka | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/loadgenerator/Dockerfile | ||
tag_suffix: loadgenerator | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/paymentservice/Dockerfile | ||
tag_suffix: paymentservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/productcatalogservice/Dockerfile | ||
tag_suffix: productcatalogservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/quoteservice/Dockerfile | ||
tag_suffix: quoteservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/recommendationservice/Dockerfile | ||
tag_suffix: recommendationservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./src/shippingservice/Dockerfile | ||
tag_suffix: shippingservice | ||
context: ./ | ||
setup-qemu: true | ||
- file: ./test/tracetesting/Dockerfile | ||
tag_suffix: traceBasedTests | ||
context: ./ | ||
setup-qemu: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -131,14 +149,24 @@ jobs: | |
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
if: ${{ inputs.push }} | ||
- name: Set up QEMU | ||
if: ${{ matrix.file_tag.setup-qemu }} | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
image: tonistiigi/binfmt:master | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
buildkitd-config-inline: | | ||
[worker.oci] | ||
max-parallelism = 2 | ||
- name: Matrix Build and push demo images | ||
if: steps.check_changes.outputs.skip == 'false' | ||
uses: docker/[email protected] | ||
with: | ||
context: ${{ matrix.file_tag.context }} | ||
file: ${{ matrix.file_tag.file }} | ||
platforms: linux/amd64,linux/arm64 | ||
push: ${{ inputs.push }} | ||
tags: | | ||
${{ inputs.dockerhub_repo }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }} | ||
|
This file was deleted.
Oops, something went wrong.