Skip to content

Commit

Permalink
Add docker manifest creation in the workflow (#4527)
Browse files Browse the repository at this point in the history
  • Loading branch information
carles-grafana authored Jan 8, 2025
1 parent 7e9ca2b commit 71e8531
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71e8531

Please sign in to comment.