diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e3a9f8442fa604b6312d3d3bd0298c344ea15a94..a526bc688d47d0228222b5ca0373d554317d9503 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,21 +39,23 @@ build: - dist # Deploy main branch to contact.greenhost.net -deploy-staging: +deploy-production: stage: deploy # Only run this job for the main branch. rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH image: debian:10 environment: - name: staging - url: https://contact.greenhost.net/staging + name: production + url: https://contact.greenhost.net variables: FTP_USER: 'webmaster_greenhost_nl' FTP_HOST: 'ftp.greenhost.nl' DOMAIN_NAME: 'greenhost.net' SUBDOMAIN: 'contact' - SUBFOLDER: '/staging' + # We don't use a subfolder for now, but put the assets directly under + # `contact.greenhost.net`. + SUBFOLDER: '' BUILD_FOLDER: './dist' before_script: - apt-get update