Skip to content

Commit

Permalink
deploy with netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshelkovenkov committed Sep 22, 2023
1 parent 5788d4f commit 06078a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
39 changes: 0 additions & 39 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,42 +26,3 @@ build:
#- npx npm-force-resolutions
- npm install --force
- ./node_modules/@angular/cli/bin/ng.js build --aot --vendor-chunk --common-chunk --delete-output-path --build-optimizer --configuration production

# build docker image
dockerize:
stage: dockerize
dependencies:
- build
image: docker:stable
services:
- docker:dind
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
script:
- echo $BUILD_CODE_IMAGE
- docker build -t $CONTAINER_IMAGE -t $CONTAINER_IMAGE_LATEST .
- docker tag $CONTAINER_IMAGE $CONTAINER_IMAGE_LATEST
- docker push $CONTAINER_IMAGE
- docker push $CONTAINER_IMAGE_LATEST
only:
- tags

# deploy to server
deploy:
stage: deploy
dependencies:
- dockerize
image: ictu/sshpass:latest
services:
- docker:dind
before_script:
- mkdir -p ~/.ssh
- echo "$DEPLOY_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
- ssh-keyscan -H $PROD_SERVER >> ~/.ssh/known_hosts
script:
- sshpass -p $LOGIN_KEY ssh igor@$PROD_SERVER "cd docker && cd Privat && cd defichain-income && docker login -u $REGISTRY_LOGIN -p $REGISTRY_KEY registry.gitlab.com && ./deploy.sh && exit"
only:
- tags
6 changes: 0 additions & 6 deletions Dockerfile

This file was deleted.

0 comments on commit 06078a5

Please sign in to comment.