Skip to content
Snippets Groups Projects
Commit 8886e7bc authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch '28-add-deploy-job-for-production-version' into 'main'

Resolve "Add deploy job for production version"

Closes #28

See merge request !15
parents 75cb59ce 1cb3ba56
No related branches found
No related tags found
1 merge request!15Resolve "Add deploy job for production version"
...@@ -39,21 +39,23 @@ build: ...@@ -39,21 +39,23 @@ build:
- dist - dist
# Deploy main branch to contact.greenhost.net # Deploy main branch to contact.greenhost.net
deploy-staging: deploy-production:
stage: deploy stage: deploy
# Only run this job for the main branch. # Only run this job for the main branch.
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
image: debian:10 image: debian:10
environment: environment:
name: staging name: production
url: https://contact.greenhost.net/staging url: https://contact.greenhost.net
variables: variables:
FTP_USER: 'webmaster_greenhost_nl' FTP_USER: 'webmaster_greenhost_nl'
FTP_HOST: 'ftp.greenhost.nl' FTP_HOST: 'ftp.greenhost.nl'
DOMAIN_NAME: 'greenhost.net' DOMAIN_NAME: 'greenhost.net'
SUBDOMAIN: 'contact' 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' BUILD_FOLDER: './dist'
before_script: before_script:
- apt-get update - apt-get update
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment