-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Images support multi arch #488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
austinlparker
merged 17 commits into
open-telemetry:main
from
JaredTan95:images_support_multi_arch
Oct 19, 2022
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
db7516f
spoort multiarch release
JaredTan95 9480f19
Merge remote-tracking branch 'upstream/main' into images_support_mult…
JaredTan95 196c21f
update
JaredTan95 7afc798
debug
JaredTan95 31dba39
update
JaredTan95 55a1afe
remove tag
JaredTan95 94ab188
update
JaredTan95 f831877
remove update env file
JaredTan95 d980443
note login
JaredTan95 16ad85d
debug
JaredTan95 0483442
finish
JaredTan95 1e54a7b
update changelog
JaredTan95 4123312
update
JaredTan95 3688b64
polish
JaredTan95 659f107
typo
JaredTan95 750943b
revert update .env
JaredTan95 6691196
Merge branch 'main' into images_support_multi_arch
austinlparker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -16,29 +16,65 @@ jobs: | |
| DOCKERHUB_REPO: "otel/demo" | ||
| GHCR_REPO: "ghcr.io/open-telemetry/demo" | ||
|
|
||
| strategy: | ||
| matrix: | ||
| file_tag: | ||
| - file: ./src/adservice/Dockerfile | ||
| tag_suffix: adservice | ||
| - file: ./src/cartservice/src/Dockerfile | ||
| tag_suffix: cartservice | ||
| - file: ./src/checkoutservice/Dockerfile | ||
| tag_suffix: checkoutservice | ||
| - file: ./src/currencyservice/Dockerfile | ||
| tag_suffix: currencyservice | ||
| - file: ./src/emailservice/Dockerfile | ||
| tag_suffix: emailservice | ||
| - file: ./src/frontend/Dockerfile | ||
| tag_suffix: frontend | ||
| - file: ./src/paymentservice/Dockerfile | ||
| tag_suffix: paymentservice | ||
| - file: ./src/productcatalogservice/Dockerfile | ||
| tag_suffix: productcatalogservice | ||
| - file: ./src/quoteservice/Dockerfile | ||
| tag_suffix: quoteservice | ||
| - file: ./src/shippingservice/Dockerfile | ||
| tag_suffix: shippingservice | ||
| - file: ./src/featureflagservice/Dockerfile | ||
| tag_suffix: featureflagservice | ||
| - file: ./src/loadgenerator/Dockerfile | ||
| tag_suffix: loadgenerator | ||
| - file: ./src/recommendationservice/Dockerfile | ||
| tag_suffix: recommendationservice | ||
| - file: ./src/frontend/Dockerfile.cypress | ||
| tag_suffix: frontend-tests | ||
| - file: ./test/Dockerfile | ||
| tag_suffix: integrationTests | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Update .env | ||
| run: sed -i "s/IMAGE_VERSION=.*/IMAGE_VERSION=${RELEASE_VERSION}/" .env | ||
|
|
||
| - name: Commit updated .env file | ||
| uses: test-room-7/action-update-file@v1 | ||
| with: | ||
| file: .env | ||
| commit-message: "Update .env file with release version" | ||
| branch: main | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| # limit docker push image concurrency to 1 | ||
| # to avoid github package return 429 ratelimit error | ||
| - name: Set docker upload concurrent | ||
| run: | | ||
| echo $'{"max-concurrent-uploads": 1}' | sudo dd status=none of=/etc/docker/daemon.json | ||
| sudo service docker restart | ||
|
|
||
| - name: Set up QEMU | ||
| uses: docker/[email protected] | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/[email protected] | ||
|
|
||
| - name: Cache Docker layers | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: /tmp/.buildx-cache | ||
| key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-buildx- | ||
|
|
||
| - name: Log in to the Container registry | ||
| uses: docker/login-action@v2 | ||
| with: | ||
|
|
@@ -52,11 +88,13 @@ jobs: | |
| username: ${{ secrets.DOCKER_USERNAME }} | ||
| password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
|
||
| - name: prepare build env | ||
| run: make build-env-file | ||
|
|
||
| - name: build and push ghcr docker image | ||
| run: make build-and-push-ghcr | ||
|
|
||
| - name: build and push dockerhub image | ||
| run: make build-and-push-dockerhub | ||
| - name: Matrix Build and push demo images | ||
| uses: docker/[email protected] | ||
| with: | ||
| context: ./ | ||
| file: ${{ matrix.file_tag.file }} | ||
| platforms: linux/amd64,linux/arm64 | ||
| push: ${{ github.event_name != 'pull_request' }} | ||
| tags: ${{ env.DOCKERHUB_REPO }}:${{ env.RELEASE_VERSION }}-${{ matrix.file_tag.tag_suffix }},${{ env.GHCR_REPO }}:${{ env.RELEASE_VERSION }}-${{ matrix.file_tag.tag_suffix }} | ||
| cache-from: type=local,src=/tmp/.buildx-cache | ||
| cache-to: type=local,dest=/tmp/.buildx-cache | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.