fix: remove extra spaces in docker push command and SSH key configuration

This commit is contained in:
k1nq 2025-11-29 12:32:08 +05:00
parent a06a6eb834
commit 4bdc575892
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ jobs:
- name: Build and push app - name: Build and push app
run: | run: |
docker build -t ${{ secrets.GIT_HOST }}/${{ gitea.repository }}:app -f app/Dockerfile ./app docker build -t ${{ secrets.GIT_HOST }}/${{ gitea.repository }}:app -f app/Dockerfile ./app
docker push $ {{ secrets.GIT_HOST }}/${{ gitea.repository }}:app docker push ${{ secrets.GIT_HOST }}/${{ gitea.repository }}:app
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -27,7 +27,7 @@ jobs:
- name: Instasll SSH key - name: Instasll SSH key
uses: webfactory/ssh-agent@v.0.9.0 uses: webfactory/ssh-agent@v.0.9.0
with: with:
ssh-private-key: $ {{ secrets.DEPLOY_SSH_KEY }} ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
- name: Add host to known_hosts - name: Add host to known_hosts
run: ssh-keyscan -H ${{ secrets.LXC_HOST }} >> ~/.ssh/known_hosts run: ssh-keyscan -H ${{ secrets.LXC_HOST }} >> ~/.ssh/known_hosts