Created
January 24, 2020 16:27
-
-
Save Pamps/d5fb83f474ea4b39eab1370f1fbbbcf5 to your computer and use it in GitHub Desktop.
Gitlab CI file with 3 manual deploy options
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
# Manual deployment to staging | |
# Manual deployment to CSB and AG | |
deploy-to-staging: | |
script: | |
- apt-get update -qq && apt-get install -y -qq lftp | |
- lftp -c "set ftp:ssl-allow no; open -u $USERNAME,'$PASSWORD' $HOST; mirror -Rnv ./ public_html/wp-content/ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/" | |
only: | |
- master | |
when: manual | |
deploy-to-csb-production: | |
script: | |
- apt-get update -qq && apt-get install -y -qq lftp | |
- lftp -c "set ftp:ssl-allow no; open -u $CSB_UN,'$CSB_PWD' $CSB_SERVER; mirror -Rnv ./ public_html/ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/" | |
only: | |
- master | |
when: manual | |
deploy-to-agl-production: | |
script: | |
- apt-get update -qq && apt-get install -y -qq lftp | |
- lftp -c "set ftp:ssl-allow no; open -u $AG_UN,'$AG_PWD' $AG_SERVER; mirror -Rnv ./ public_html/ --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/" | |
only: | |
- master | |
when: manual | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment