From 26e3f5adb9e783df7cdd98c0fb7f471b346b91f2 Mon Sep 17 00:00:00 2001 From: segunjkf Date: Mon, 24 Jun 2024 13:00:29 +0100 Subject: [PATCH] nits: test retag for all arch Signed-off-by: segunjkf --- .github/workflows/tag-latest-image.yml | 54 +++++++++----------------- 1 file changed, 19 insertions(+), 35 deletions(-) diff --git a/.github/workflows/tag-latest-image.yml b/.github/workflows/tag-latest-image.yml index 26e0ff8..685d715 100644 --- a/.github/workflows/tag-latest-image.yml +++ b/.github/workflows/tag-latest-image.yml @@ -1,36 +1,16 @@ -# Re-tag the given image and push it to the DockerHub -# Preserves the old tag. name: Docker Latest tag For Releases -# on: -# workflow_dispatch: -# inputs: -# tag: -# description: 'Tag of the base image to use' -# required: true -# type: string -# new_tag: -# description: 'New tag to use' -# default: 'latest' -# required: true -# type: string -# dry_run: -# description: "Don't push the tag to Docker" -# required: true -# type: boolean -# default: false - on: - push: - branches: [main] - tags: - - "*" - merge_group: - pull_request: - branches: - - main - - 'feature/**' - - 'v[0-9]+.[0-9]+' + push: + branches: [main] + tags: + - "*" + merge_group: + pull_request: + branches: + - main + - 'feature/**' + - 'v[0-9]+.[0-9]+' jobs: tag-docker-image: @@ -51,12 +31,16 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Re-tag image + - name: Create builder + run: docker buildx create --name mybuilder --use + + - name: Inspect builder + run: docker buildx inspect --bootstrap + + - name: Pull and retag image run: | - docker pull blockopsnetwork/telescope:2024-06-24-1d0217f - docker tag blockopsnetwork/telescope:2024-06-24-1d0217f blockopsnetwork/telescope:edge - + docker buildx imagetools create --tag blockopsnetwork/telescope:edge blockopsnetwork/telescope:2024-06-24-1d0217f + - name: Push image - # if: ${{ !fromJSON(github.event.inputs.dry_run) }} run: | docker push blockopsnetwork/telescope:edge