Skip to content

Commit

Permalink
use docker buildx imagetools
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
  • Loading branch information
blt committed Nov 7, 2024
1 parent 9491c1a commit 2903234
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,9 @@ jobs:
type=sha,format=long
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Confirm images exist
run: |
docker pull ${{ steps.meta.outputs.tags }}-amd64
docker pull ${{ steps.meta.outputs.tags }}-arm64
- name: Create and Push Multiarch Manifest
run: |
docker manifest create ${{ steps.meta.outputs.tags }} \
docker buildx imagetools create \
--tag ${{ steps.meta.outputs.tags }} \
${{ steps.meta.outputs.tags }}-amd64 \
${{ steps.meta.outputs.tags }}-arm64
docker manifest annotate ${{ steps.meta.outputs.tags }} ${{ steps.meta.outputs.tags }}-amd64 --os linux --arch amd64
docker manifest annotate ${{ steps.meta.outputs.tags }} ${{ steps.meta.outputs.tags }}-arm64 --os linux --arch arm64
docker manifest push ${{ steps.meta.outputs.tags }}

0 comments on commit 2903234

Please sign in to comment.