Last active
March 12, 2019 08:35
-
-
Save danielstrelec/089e9ef1fd8b43d15588ebab2265ce45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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