Edit workflow to work with GitHub Container Registry
Build and publish bnuy api / build (push) Successful in 13m16s

This commit is contained in:
2026-05-13 10:58:33 +02:00
parent 15be556741
commit b3139d9c5b
+6 -1
View File
@@ -19,7 +19,12 @@ jobs:
# this step was made by AI, i hope it works
- name: Extract registry host
id: registry
run: echo "host=$(echo ${{ github.server_url }} | sed 's|https\?://||')" >> "$GITHUB_OUTPUT"
run: |
HOST=$(echo ${{ github.server_url }} | sed 's|https\?://||')
if [ "$HOST" = "github.com" ]; then
HOST="ghcr.io"
fi
echo "host=$HOST" >> "$GITHUB_OUTPUT"
- name: Docker meta
id: meta