Skip to content

Instantly share code, notes, and snippets.

@danielstrelec
Last active March 12, 2019 08:35
Show Gist options
  • Save danielstrelec/089e9ef1fd8b43d15588ebab2265ce45 to your computer and use it in GitHub Desktop.
Save danielstrelec/089e9ef1fd8b43d15588ebab2265ce45 to your computer and use it in GitHub Desktop.
# nastaveni ftp serveru
variables:
FTP_URL: "***"
FTP_USERNAME: "***"
FTP_PASSWORD: "***"
## definice akci
stages:
- deploy
- clear-cache
# natazeni docker image s git-ftp
image: dotsunited/git-ftp
deploy:
# nazev akce
stage: deploy
# spustime pozadovane skripty
script:
- git --version
- git ftp --version
# pouze pro vstupni deploy
#- git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD $FTP_URL
# deploy posledniho commitu
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD $FTP_URL
# nastaveni spusteni - pouze na master vetvi
only:
- master
# manualni spusteni, kdyz je zakomentovano spousti se automaticky
#when: manual
clear-cache:
# nazev akce
stage: clear-cache
# spustime pozadovane skripty
script:
curl -O https://www.adresa.cz/vymaz-cache.php
only:
- master
# manualni spusteni, kdyz je zakomentovano spousti se automaticky
#when: manual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment