mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-04-05 22:01:04 +00:00
another fix atempt
This commit is contained in:
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -68,9 +68,11 @@ jobs:
|
||||
run: |
|
||||
eval "$(ssh-agent -s)"
|
||||
echo "${{ secrets.DOKKU_SSH_PRIVATE_KEY }}" | ssh-add -
|
||||
APP_NAME=$(echo "${{ secrets.DOKKU_REPO }}" | sed 's/.*\///')
|
||||
HOST=$(echo "${{ secrets.DOKKU_REPO }}" | sed 's/dokku@//;s/:.*//')
|
||||
ssh -o StrictHostKeyChecking=no dokku@$HOST config:set --no-restart $APP_NAME GoogleMaps__ApiKey=${{ secrets.GOOGLE_MAPS_API_KEY }}
|
||||
# DOKKU_REPO format: dokku@host:app-name
|
||||
REMOTE="${{ secrets.DOKKU_REPO }}"
|
||||
HOST=$(echo "$REMOTE" | cut -d@ -f2 | cut -d: -f1)
|
||||
APP_NAME=$(echo "$REMOTE" | cut -d: -f2)
|
||||
ssh -o StrictHostKeyChecking=no "dokku@${HOST}" config:set --no-restart "$APP_NAME" "GoogleMaps__ApiKey=${{ secrets.GOOGLE_MAPS_API_KEY }}"
|
||||
|
||||
- name: Push to dokku
|
||||
uses: dokku/github-action@master
|
||||
|
||||
Reference in New Issue
Block a user