diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 766de38baa97b77a255ac77c2a8c6f78dfa5a653..eca3827b05cb760075f23040a340e13f6b08960d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,18 @@ stages: - performance - cleanup +prepare_secrets: + stage: prepare + image: alpine:latest + script: + - cp $ENV_FILE .env # Also provide env file + artifacts: + paths: + - .env + only: + - branches + - tags + prepare_node: stage: prepare image: node:10 @@ -38,12 +50,11 @@ prepare_node: - npm install script: - npm run prod - - echo "$ENV_FILE" > .env # Also provide env file artifacts: paths: - node_modules - public/css/all.css - - .env + - public/mix-manifest.json cache: # Cache per Branch key: "node-$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG" @@ -70,6 +81,8 @@ build: services: review: + services: + - redis:latest variables: HELM_UPGRADE_EXTRA_ARGS: --set service.externalPort=80 --set service.internalPort=80 --set service.commonName= --set ingress.tls.enabled=false --set ingress.annotations.kubernetes\.io/tls-acme="false" --set ingress.annotations.nginx\.ingress\.kubernetes\.io/ssl-redirect="false" ROLLOUT_RESOURCE_TYPE: deployment diff --git a/.gitlab-ci.yml.bak b/.gitlab-ci.yml.bak deleted file mode 100644 index 4f038384bf5f6e8199cba7242116aa5e24b7315d..0000000000000000000000000000000000000000 --- a/.gitlab-ci.yml.bak +++ /dev/null @@ -1,29 +0,0 @@ -# This file is a template, and might need editing before it works on your project. -# Full project: https://gitlab.com/pages/plain-html -update(proxy.suma-ev.de): - tags: - - proxy.suma-ev.de - only: - - master@open-source/Proxy - before_script: - # Abhängigkeiten überprüfen - - which composer - - which git - - which php - script: - - if [ -d ~/.Proxy ]; then rm -rf ~/.Proxy;fi - - mkdir ~/.Proxy - - cp -r * ~/.Proxy - - cd ~/.Proxy - - composer install - - npm install - - npm run production - - cp ~/.env . - - touch storage/logs/laravel.log - - chmod -R 777 storage - - chmod -R 777 bootstrap/cache - - if [ -f ~/Proxy/artisan ]; then php ~/Proxy/artisan down;fi - - cd ~/ - - while [ -d ~/Proxy ]; do rm -rf ~/Proxy;done - - mv .Proxy Proxy - - if [ -f ~/Proxy/artisan ]; then php ~/Proxy/artisan up;fi