Skip to content

Instantly share code, notes, and snippets.

@Pamps
Created January 24, 2020 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pamps/d5fb83f474ea4b39eab1370f1fbbbcf5 to your computer and use it in GitHub Desktop.
Save Pamps/d5fb83f474ea4b39eab1370f1fbbbcf5 to your computer and use it in GitHub Desktop.
Gitlab CI file with 3 manual deploy options
# 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