Skip to content

Commit

Permalink
chore: add retag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Michiel87 committed Mar 1, 2024
1 parent 4b6b94c commit c134aaa
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/retag-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: retag-image
on:
workflow_dispatch:
inputs:
source-registry:
description: Source image registry
required: true
default: ghcr.io
target-registry:
description: Target image registry
required: true
default: docker.io
source-name:
description: Source image name
required: true
source-tag:
description: Source image tag
required: true
target-name:
description: Target image name
required: true
target-tag:
description: Target image tag
required: true

jobs:
retag-image:
runs-on: ubuntu-latest
steps:
- name: release images with tags
uses: exivity/actions/retag-image@main
with:
source-registry: ${{ inputs.source-registry }}
target-registry: ${{ inputs.target-registry }}
source-name: ${{ inputs.source-name }}
source-tag: ${{ inputs.source-tag }}
target-name: ${{ inputs.target-name }}
target-tag: ${{ inputs.target-tag }}
target-user: ${{ secrets.DOCKER_HUB_USER }}
target-password: ${{ secrets.DOCKER_HUB_TOKEN }}

0 comments on commit c134aaa

Please sign in to comment.