Update .gitea/workflows/deploy.yml
All checks were successful
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Successful in 14s
All checks were successful
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Successful in 14s
This commit is contained in:
@@ -21,45 +21,47 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# =====================
|
# =====================
|
||||||
# OPTIONAL DEBUG (kannst du später löschen)
|
# DEBUG (kann später raus)
|
||||||
# =====================
|
# =====================
|
||||||
- name: Debug workspace
|
- name: Debug workspace
|
||||||
run: |
|
run: |
|
||||||
echo "Working directory:"
|
echo "PWD:"
|
||||||
pwd
|
pwd
|
||||||
echo "Files:"
|
echo "FILES:"
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
# =====================
|
# =====================
|
||||||
# DEV DEPLOY (SFTP)
|
# DEV DEPLOY (FTP)
|
||||||
# =====================
|
# =====================
|
||||||
- name: Deploy to DEV via SFTP
|
- name: Deploy to DEV via FTP
|
||||||
if: github.ref == 'refs/heads/develop'
|
if: github.ref == 'refs/heads/develop'
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y lftp
|
apt-get install -y lftp
|
||||||
|
|
||||||
lftp -u "${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASS }}" sftp://${{ secrets.SFTP_HOST }}:${{ secrets.SFTP_PORT }} <<EOF
|
lftp -u "${{ secrets.FTP_USER }},${{ secrets.FTP_PASS }}" ftp://${{ secrets.FTP_HOST }}:${{ secrets.FTP_PORT }} <<EOF
|
||||||
set sftp:auto-confirm yes
|
set ftp:ssl-allow no
|
||||||
set net:timeout 20
|
set net:timeout 20
|
||||||
set net:max-retries 2
|
set net:max-retries 2
|
||||||
|
set mirror:parallel-transfer-count 2
|
||||||
mirror -R --delete --verbose ./ /dev.konfi-castle.com/wp-content/plugins/konficastle-workshopwahl/
|
mirror -R --delete --verbose ./ /dev.konfi-castle.com/wp-content/plugins/konficastle-workshopwahl/
|
||||||
quit
|
quit
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# =====================
|
# =====================
|
||||||
# PROD DEPLOY (SFTP)
|
# PROD DEPLOY (FTP)
|
||||||
# =====================
|
# =====================
|
||||||
- name: Deploy to PROD via SFTP
|
- name: Deploy to PROD via FTP
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y lftp
|
apt-get install -y lftp
|
||||||
|
|
||||||
lftp -u "${{ secrets.SFTP_USER }},${{ secrets.SFTP_PASS }}" sftp://${{ secrets.SFTP_HOST }}:${{ secrets.SFTP_PORT }} <<EOF
|
lftp -u "${{ secrets.FTP_USER }},${{ secrets.FTP_PASS }}" ftp://${{ secrets.FTP_HOST }}:${{ secrets.FTP_PORT }} <<EOF
|
||||||
set sftp:auto-confirm yes
|
set ftp:ssl-allow no
|
||||||
set net:timeout 20
|
set net:timeout 20
|
||||||
set net:max-retries 2
|
set net:max-retries 2
|
||||||
|
set mirror:parallel-transfer-count 2
|
||||||
mirror -R --delete --verbose ./ /httpdocs/wp-content/plugins/konficastle-workshopwahl/
|
mirror -R --delete --verbose ./ /httpdocs/wp-content/plugins/konficastle-workshopwahl/
|
||||||
quit
|
quit
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user