Skip to content

Commit

Permalink
nits: test retag for all arch
Browse files Browse the repository at this point in the history
Signed-off-by: segunjkf <[email protected]>
  • Loading branch information
segunjkf committed Jun 24, 2024
1 parent a29d448 commit 26e3f5a
Showing 1 changed file with 19 additions and 35 deletions.
54 changes: 19 additions & 35 deletions .github/workflows/tag-latest-image.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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

0 comments on commit 26e3f5a

Please sign in to comment.