🐛 fix(ci): normalizza nome immagine Docker rimuovendo scope npm
- I package con scope npm (@pzeta/nome) generano tag Docker invalidi - Aggiunto sed per strippare '@scope/' prima di costruire il tag - Risultato: gitea.pzetatouch.it/pzeta_touch/telegram-file-bot:1.0.1
This commit is contained in:
@@ -60,7 +60,8 @@ jobs:
|
|||||||
- name: Determine image tags
|
- name: Determine image tags
|
||||||
id: tags
|
id: tags
|
||||||
run: |
|
run: |
|
||||||
APP_NAME=$(jq -r '.name' package.json)
|
RAW_NAME=$(jq -r '.name' package.json)
|
||||||
|
APP_NAME=$(echo "$RAW_NAME" | sed 's|^@[^/]*/||')
|
||||||
VERSION=$(jq -r '.version' package.json)
|
VERSION=$(jq -r '.version' package.json)
|
||||||
REGISTRY="gitea.pzetatouch.it/pzeta_touch"
|
REGISTRY="gitea.pzetatouch.it/pzeta_touch"
|
||||||
echo "version_tag=${REGISTRY}/${APP_NAME}:${VERSION}" >> $GITHUB_OUTPUT
|
echo "version_tag=${REGISTRY}/${APP_NAME}:${VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user