mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-04-05 22:01:04 +00:00
app name fixed
This commit is contained in:
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@@ -68,10 +68,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
eval "$(ssh-agent -s)"
|
eval "$(ssh-agent -s)"
|
||||||
echo "${{ secrets.DOKKU_SSH_PRIVATE_KEY }}" | ssh-add -
|
echo "${{ secrets.DOKKU_SSH_PRIVATE_KEY }}" | ssh-add -
|
||||||
# DOKKU_REPO format: dokku@host:app-name
|
|
||||||
REMOTE="${{ secrets.DOKKU_REPO }}"
|
REMOTE="${{ secrets.DOKKU_REPO }}"
|
||||||
HOST=$(echo "$REMOTE" | cut -d@ -f2 | cut -d: -f1)
|
# Extract app name (last path segment) and host, handling both
|
||||||
APP_NAME=$(echo "$REMOTE" | cut -d: -f2)
|
# ssh://dokku@host:port/app and dokku@host:app formats
|
||||||
|
APP_NAME=$(echo "$REMOTE" | sed 's|.*/||')
|
||||||
|
HOST=$(echo "$REMOTE" | sed 's|.*@||;s|[:/].*||')
|
||||||
ssh -o StrictHostKeyChecking=no "dokku@${HOST}" config:set --no-restart "$APP_NAME" "GoogleMaps__ApiKey=${{ secrets.GOOGLE_MAPS_API_KEY }}"
|
ssh -o StrictHostKeyChecking=no "dokku@${HOST}" config:set --no-restart "$APP_NAME" "GoogleMaps__ApiKey=${{ secrets.GOOGLE_MAPS_API_KEY }}"
|
||||||
|
|
||||||
- name: Push to dokku
|
- name: Push to dokku
|
||||||
|
|||||||
Reference in New Issue
Block a user