ssh again
Gitea Actions Demo / build_and_push (push) Failing after 57s
Details
Gitea Actions Demo / build_and_push (push) Failing after 57s
Details
This commit is contained in:
parent
1cf6d7aa55
commit
2dacfa5ae9
|
|
@ -24,19 +24,9 @@ jobs:
|
|||
tags: gitea.webart-tech.ru/webart/strava-frontend:${{ gitea.sha }}
|
||||
- name: Deploy
|
||||
run: |
|
||||
ssh-keyscan -t rsa gitea.webart-tech.ru >> ~/.ssh/known_hosts
|
||||
echo "${{ secrets.DEPLOY_KEY }}" >> ~/.ssh/id_ed25519
|
||||
chmod 700 /root/.ssh
|
||||
chmod 400 /root/.ssh/id_ed25519
|
||||
git config --global user.email "artem@artem-B450M-DS3H"
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add ~/.ssh/id_ed25519
|
||||
echo '1'
|
||||
git config --global user.email "deploy@deploy.deploy"
|
||||
git clone git@gitea.webart-tech.ru:webart/kuber-deploy.git deploy
|
||||
echo '2'
|
||||
cd ./deploy
|
||||
sed -i -E 's/strava-frontend:.+/strava-frontend:${{ gitea.sha }}/g' strava.yml
|
||||
git config --global user.email "deploy@deploy.deploy"
|
||||
git commit -am 'auto-deploy'
|
||||
echo '3'
|
||||
git push https://${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}@gitea.webart-tech.ru/webart/kuber-deploy
|
||||
Loading…
Reference in New Issue