forked from dxatscale/sfpowerscripts
-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (39 loc) · 971 Bytes
/
tagDockerImage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Promote Docker Image in ghcr manually
on:
workflow_dispatch:
inputs:
repo:
type: string
required: true
default: flxbl-io
image:
type: string
required: true
default: sfp
existing-tag:
type: string
required: true
default: latest
new-tag:
type: string
required: true
default: latest
jobs:
build:
name: 'tag sfp docker image'
environment: tagger
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Tag Docker'
uses: ./.github/actions/tagDocker
with:
repo: ${{ github.event.inputs.repo }}
image: ${{ github.event.inputs.image }}
existing-tag: ${{ github.event.existing-tag }}
new-tag: ${{ github.event.new-tag }}
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
token: ${{ secrets.GITHUB_TOKEN }}