-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker manifest creation in the workflow (#4527)
- Loading branch information
1 parent
7e9ca2b
commit 71e8531
Showing
1 changed file
with
31 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -64,12 +64,42 @@ jobs: | |
TAG_ARCH="$TAG-${{ matrix.runner_arch.arch }}" | ||
docker push grafana/${{ matrix.component }}:$TAG_ARCH | ||
manifest: | ||
if: github.repository == 'grafana/tempo' | ||
needs: ['get-tag', 'docker'] | ||
strategy: | ||
matrix: | ||
component: [ tempo, tempo-vulture, tempo-query, tempo-cli ] | ||
runs-on: ubuntu-24.04 | ||
env: | ||
TAG: ${{ needs.get-tag.outputs.tag }} | ||
IMAGE_NAME: grafana/${{ matrix.component }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to DockerHub | ||
uses: grafana/shared-workflows/actions/[email protected] | ||
|
||
- name: docker-manifest-create-and-push | ||
run: | | ||
docker manifest create \ | ||
$IMAGE_NAME:$TAG \ | ||
--amend $IMAGE_NAME:$TAG-amd64 \ | ||
--amend $IMAGE_NAME:$TAG-arm64 | ||
docker manifest push $IMAGE_NAME:$TAG | ||
docker manifest create \ | ||
$IMAGE_NAME:latest \ | ||
--amend $IMAGE_NAME:$TAG-amd64 \ | ||
--amend $IMAGE_NAME:$TAG-arm64 | ||
docker manifest push $IMAGE_NAME:latest | ||
cd-to-dev-env: | ||
# This job deploys the latest main commit to the dev environment | ||
if: github.repository == 'grafana/tempo' && github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-24.04 | ||
needs: docker | ||
needs: manifest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|