Add docker manifest creation in the workflow (#4527)
This commit is contained in:
@@ -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/dockerhub-login@dockerhub-login-v1.0.0
|
||||
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user