Edit workflow to work with GitHub Container Registry
Build and publish bnuy api / build (push) Successful in 13m16s
Build and publish bnuy api / build (push) Successful in 13m16s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user