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

This commit is contained in:
Aliberk Sandıkçı 2024-11-15 20:48:49 +03:00
parent 94428ce0b2
commit 02bbfa90fc

View file

@ -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
@ -77,6 +62,8 @@ jobs:
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