Commit d3a975e0 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Oh gotta love them "pRemiUm FEATurEs"

parent af815b1c
Pipeline #9835 canceled with stages
in 16 seconds
......@@ -22,7 +22,7 @@ build_web_backend:
- src/backend/.env
- src/backend/composer.lock
# Currently set to build timeout
expire_in: 1 hour
expire_in: 1 day
build_web_frontend:
stage: build
......@@ -33,7 +33,7 @@ build_web_frontend:
artifacts:
paths:
- src/frontend/dist
expire_in: 30 days
expire_in: 1 day
#test_php_styles:
# stage: test
......@@ -58,7 +58,6 @@ build_web_frontend:
# script:
# - cd src/backend
# - vendor/bin/phpunit --testsuite Database
deploy_backend_production:
stage: deploy
before_script:
......@@ -88,12 +87,8 @@ deploy_frontend_production:
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- "SSH_COMMAND_STRING=\"curl --location --header 'JOB-TOKEN: $CI_JOB_TOKEN' '${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_BUILD_REF_NAME}/download?job=build_web_frontend' --output frontend.zip\""
- SSH_COMMAND_STRING+=" && unzip -o frontend.zip && rsync -a --delete src/frontend/dist doorcode/src/frontend/"
- SSH_COMMAND_STRING+=" && rm -rf src/ frontend.zip"
- echo "$SSH_COMMAND_STRING"
# Execute the deploy
- ssh $SSH_USER@$SSH_HOST "${SSH_COMMAND_STRING}"
# Can't use the CI job token to deploy the artifact because that's a "pRemiUm FEATurE"
- "rsync -a --delete src/frontend/dist $SSH_USER@$SSH_HOST:/home/$SSH_USER/doorcode/src/frontend/"
# Make sure it is running
- "curl --insecure --location https://${SSH_HOST} | grep \"work properly without JavaScript enabled.\""
environment:
......
......@@ -18,6 +18,7 @@ RUN apk update && apk add --no-cache \
curl \
openssh-client \
coreutils \
rsync \
npm\
&& apk add --no-cache $PHPIZE_DEPS \
&& npm install -g @vue/cli \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment