fix: fixes deploy by tag in dispatcher
This commit is contained in:
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
@@ -7,7 +7,6 @@ on:
|
|||||||
tag:
|
tag:
|
||||||
description: 'Tag to deploy'
|
description: 'Tag to deploy'
|
||||||
required: false
|
required: false
|
||||||
default: 'latest'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -128,7 +127,7 @@ jobs:
|
|||||||
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
|
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
|
||||||
|
|
||||||
IMAGE_BASE="ghcr.io/${OWNER}/${REPO}"
|
IMAGE_BASE="ghcr.io/${OWNER}/${REPO}"
|
||||||
IMAGE_TAG="sha-${SHORT_SHA}"
|
IMAGE_TAG=${{ github.event.inputs.tag || format('sha-{0}', github.sha) }}
|
||||||
|
|
||||||
echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV
|
echo "IMAGE_BASE=${IMAGE_BASE}" >> $GITHUB_ENV
|
||||||
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
|
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
|
||||||
|
|||||||
Reference in New Issue
Block a user