Skip to content
Snippets Groups Projects
Commit fdf16ba5 authored by Santiago Rafael Gonzalez Pereyra's avatar Santiago Rafael Gonzalez Pereyra
Browse files

.gitlab-ci.yml added (test)

parent 0df55a3c
No related branches found
No related tags found
1 merge request!1WIP: API requests refactor
API_CLIENT_URI="https://open.fing.edu.uy/api-preview/v1/graphql"
\ No newline at end of file
API_CLIENT_URI="https://open.fing.edu.uy/api-preview/v1/graphql"
PUBLIC_URL=/
\ No newline at end of file
cache:
paths:
- node_modules/
before_script:
- apt-get -qq update
- apt-get -qq install openssh-client git-core gnupg curl > /dev/null
- curl -sSL https://deb.nodesource.com/setup_8.x | bash -
- apt-get -qq install nodejs
deploy to preview:
stage: deploy
environment:
name: preview
script:
- echo $ENV_PREVIEW_FILE | base64 -d >> ./.env
- set -o allexport; source .env; set +o allexport
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$PRIVATE_HOST_KEY" | base64 -d > ~/.ssh/known_hosts
- npm i
- echo "APP_VERSION=$CI_COMMIT_TAG" >> ./.env
- npm run build
- ssh openfing@openfing.fing.edu.uy 'rm -rf ~/openfing/preview; mkdir ~/openfing/preview'
- scp -r ./build/* openfing@openfing.fing.edu.uy:~/openfing/preview
only:
- /^v\d+\.\d+\.\d+-preview\d+$/
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