Skip to content

Commit

Permalink
Add github job to tag image as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardesco committed Aug 9, 2023
1 parent 81205dd commit e3496dc
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tag_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tag image as latest

on:
workflow_dispatch:
inputs:
sha:
description: 'SHA of image to tag as latest'
required: true
default: "sha-"

env:
REGISTRY: ghcr.io

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest

steps:
- uses: shrink/actions-docker-registry-tag@v3
with:
registry: ${{ env.REGISTRY }}
repository: ${{ github.repository }}
target: ${{ github.event.inputs.sha }}
tags: |
latest

0 comments on commit e3496dc

Please sign in to comment.