forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dash0] use images from AWS ECR repository
- Loading branch information
Showing
9 changed files
with
219 additions
and
261 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Build and Push Images | ||
|
||
on: | ||
push: | ||
paths: | ||
|
@@ -19,6 +21,8 @@ on: | |
required: false | ||
type: string | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_push_images: | ||
runs-on: ubuntu-latest | ||
|
@@ -28,8 +32,7 @@ jobs: | |
|
||
env: | ||
RELEASE_VERSION: "${{ github.event.release.tag_name }}" | ||
DOCKERHUB_REPO: "otel/demo" | ||
GHCR_REPO: "ghcr.io/open-telemetry/demo" | ||
AWS_ECR_REPO: "718306648796.dkr.ecr.eu-west-1.amazonaws.com/opentelemetry-demo" | ||
|
||
strategy: | ||
fail-fast: false | ||
|
@@ -140,19 +143,23 @@ jobs: | |
echo "Changes detected in ${{ matrix.file_tag.context }}, proceeding with build." | ||
echo "skip=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
- name: Configure AWS credentials | ||
if: inputs.push == 'true' | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
if: ${{ inputs.push }} | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
aws-access-key-id: ${{secrets.DEPLOYMENT_WRITE_ECR_ACCESS_KEY}} | ||
aws-secret-access-key: ${{secrets.DEPLOYMENT_WRITE_ECR_SECRET_ACCESS_KEY}} | ||
aws-region: us-west-2 | ||
mask-aws-account-id: true | ||
|
||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
if: inputs.push == 'true' | ||
uses: aws-actions/amazon-ecr-login@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
if: ${{ inputs.push }} | ||
mask-password: true | ||
|
||
- name: Set up QEMU | ||
if: ${{ matrix.file_tag.setup-qemu }} | ||
uses: docker/setup-qemu-action@v3 | ||
|
@@ -164,16 +171,16 @@ jobs: | |
config-inline: | | ||
[worker.oci] | ||
max-parallelism = 2 | ||
- name: Matrix Build and push demo images | ||
if: steps.check_changes.outputs.skip == 'false' | ||
# 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 | ||
platforms: linux/amd64 | ||
push: ${{ inputs.push }} | ||
tags: | | ||
${{ env.DOCKERHUB_REPO }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }} | ||
${{ env.GHCR_REPO }}:${{ inputs.version }}-${{ matrix.file_tag.tag_suffix }} | ||
${{ env.AWS_ECR_REPO }}:${{ inputs.version }}-${{ matrix.file_tag.tag_suffix }} | ||
cache-from: type=gha | ||
cache-to: type=gha |
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
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.