fix: remove extra spaces in docker push command and SSH key configuration
This commit is contained in:
parent
a06a6eb834
commit
4bdc575892
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue