Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable circleci #175

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 64 additions & 64 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
version: 2.1
aliases:
- &restore-cache
restore_cache:
keys:
- v1-dependencies-
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- &install-deps
run:
name: Install dependencies
command: npm i

orbs:
node: circleci/node@3.0.0

jobs:
build:
environment:
DOCKER_IMAGE: ichhoa129/discord-bot
DOCKER_TAG: latest
working_directory: ~/sharinghub/backend
docker:
- image: circleci/node:14
- image: docker:17.09.1-ce-git
steps:
- checkout
- setup_remote_docker
- *restore-cache
- run: npm cache clear --force
- run:
name: Update NPM version
command: 'sudo npm install -g npm@latest'
- *install-deps
- save_cache:
key: v1-dependencies-{{ checksum "package.json" }}
paths:
- ./node_modules

deploy:
machine:
enabled: true
working_directory: ~/sharinghub/backend
steps:
- add_ssh_keys:
fingerprints:
- '39:84:cb:5e:ca:8e:c1:71:f6:19:ad:0c:bc:0f:78:21'
- run:
name: Deploy via ssh
command: |
echo Starting to deploy server
ssh -v $SSH_USER@$SSH_HOST 'cd sharinghub/backend && git checkout develop && git pull && chmod 777 ./deploy.sh && ./deploy.sh'
workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only:
- develop
# version: 2.1
# aliases:
# - &restore-cache
# restore_cache:
# keys:
# - v1-dependencies-
# # fallback to using the latest cache if no exact match is found
# - v1-dependencies-
# - &install-deps
# run:
# name: Install dependencies
# command: npm i
# orbs:
# node: circleci/node@3.0.0
# jobs:
# build:
# environment:
# DOCKER_IMAGE: ichhoa129/discord-bot
# DOCKER_TAG: latest
# working_directory: ~/sharinghub/backend
# docker:
# - image: circleci/node:14
# - image: docker:17.09.1-ce-git
# steps:
# - checkout
# - setup_remote_docker
# - *restore-cache
# - run: npm cache clear --force
# - run:
# name: Update NPM version
# command: 'sudo npm install -g npm@latest'
# - *install-deps
# - save_cache:
# key: v1-dependencies-{{ checksum "package.json" }}
# paths:
# - ./node_modules
# deploy:
# machine:
# enabled: true
# working_directory: ~/sharinghub/backend
# steps:
# - add_ssh_keys:
# fingerprints:
# - '39:84:cb:5e:ca:8e:c1:71:f6:19:ad:0c:bc:0f:78:21'
# - run:
# name: Deploy via ssh
# command: |
# echo Starting to deploy server
# ssh -v $SSH_USER@$SSH_HOST 'cd sharinghub/backend && git checkout develop && git pull && chmod 777 ./deploy.sh && ./deploy.sh'
# workflows:
# version: 2
# build-and-deploy:
# jobs:
# - build
# - deploy:
# requires:
# - build
# filters:
# branches:
# only:
# - develop
Loading