Update .forgejo/workflows/build_and_test.yml
All checks were successful
Build and Deploy Test Version - next.asandikci.com / build_deploy (push) Successful in 1m7s
All checks were successful
Build and Deploy Test Version - next.asandikci.com / build_deploy (push) Successful in 1m7s
This commit is contained in:
parent
94428ce0b2
commit
02bbfa90fc
1 changed files with 3 additions and 16 deletions
|
@ -25,21 +25,6 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: git.asandikci.com/docker-images/website_builder:latest
|
image: git.asandikci.com/docker-images/website_builder:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Health Check [CI TEST]
|
|
||||||
run: |
|
|
||||||
ls -la
|
|
||||||
pwd
|
|
||||||
whoami
|
|
||||||
echo "this is a text file" >> index.html
|
|
||||||
date >> index.html
|
|
||||||
cat index.html
|
|
||||||
echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd
|
|
||||||
chmod 0400 ~/.passwd
|
|
||||||
sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
|
|
||||||
put index.html www/index.html
|
|
||||||
bye
|
|
||||||
!
|
|
||||||
|
|
||||||
- name: Git Clone
|
- name: Git Clone
|
||||||
run: |
|
run: |
|
||||||
git clone https://git.asandikci.com/asandikci.com/web
|
git clone https://git.asandikci.com/asandikci.com/web
|
||||||
|
@ -76,7 +61,9 @@ jobs:
|
||||||
git clone https://git.asandikci.com/asandikci.com/web
|
git clone https://git.asandikci.com/asandikci.com/web
|
||||||
cd web
|
cd web
|
||||||
git checkout website
|
git checkout website
|
||||||
cd _site
|
cd _site
|
||||||
|
echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd
|
||||||
|
chmod 0400 ~/.passwd
|
||||||
sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
|
sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
|
||||||
put -r . www/
|
put -r . www/
|
||||||
bye
|
bye
|
||||||
|
|
Loading…
Reference in a new issue