-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update draft button (#810) -remove tag and make clear button only * update ci * update ci * update ci * update config.yml * update config.yml * update config.yml * update config.yml * update config.yml * update config.yml * update config.yml * update config.yml * update config.yml * update config.yml * update config.yml * update config.yml * update package.json * update config.yml * update config.yml * update config.yml * configure docker (#811) * add dockerfile * add docker compose * add development deploy script (#812) * add require in config * update ci * remove requires * add requires * fix config typo * use ssh instead of https * update docker compose version * fix dockerfile * updated nginx config * update dockerfile * update config * update CI (#813) * add common executor * update twitter embed (#809) * update env * add clean build * update docker compose * update nginx * activate direct domain hyperlinks (#815) (#817) * expand sharing feature (#788) (#818) * update character counter * release 3.18.0 (#821) * update character counter (#820) * Expand sharing feature #788 (#818) * Activate direct domain hyperlinks #815 (#817) * Update twitter embed (#809) Co-authored-by: stinkymonkeyph <[email protected]>
- Loading branch information
1 parent
d77a062
commit 53d5ae8
Showing
17 changed files
with
380 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,68 @@ | ||
version: 2.1 | ||
orbs: | ||
discord: antonioned/[email protected] | ||
commands: | ||
send_status: discord/status | ||
jobs: | ||
build: | ||
|
||
executors: | ||
docker-executor: | ||
docker: | ||
- image: node:14.7.0 | ||
working_directory: /tmp/dbuzz-client | ||
|
||
orbs: | ||
discord: antonioned/[email protected] | ||
|
||
commands: | ||
common-steps: | ||
steps: | ||
- checkout | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run build:prod | ||
- run: npm run build:dev | ||
- send_status: | ||
webhook: https://discordapp.com/api/webhooks/747082285828014170/6TLGC1_wgAAT91n5s3PYZxC9n2_Tj5BzqHQo2tO9miZxnVGKWusD3YA-pO2GjVvOWzuF | ||
|
||
jobs: | ||
prod_build_test: | ||
executor: docker-executor | ||
steps: | ||
- common-steps | ||
- run: npm run build:prod | ||
- discord/status: | ||
success_message: test build success on master branch | ||
failure_message: test build failed on master branch | ||
webhook: https://discordapp.com/api/webhooks/747082285828014170/6TLGC1_wgAAT91n5s3PYZxC9n2_Tj5BzqHQo2tO9miZxnVGKWusD3YA-pO2GjVvOWzuF | ||
|
||
dev_build_test: | ||
executor: docker-executor | ||
steps: | ||
- common-steps | ||
- run: npm run build:dev | ||
- discord/status: | ||
success_message: test build success on non master branch | ||
failure_message: test build failed on non master branch | ||
webhook: https://discordapp.com/api/webhooks/747082285828014170/6TLGC1_wgAAT91n5s3PYZxC9n2_Tj5BzqHQo2tO9miZxnVGKWusD3YA-pO2GjVvOWzuF | ||
|
||
dev_build_deploy: | ||
machine: | ||
enabled: true | ||
steps: | ||
- run: | ||
name: Deploy over SSH | ||
command: ssh [email protected] 'sudo docker container stop $(sudo docker container ls -aq) || true && sudo docker container rm $(sudo docker container ls -aq) || true && sudo docker image prune -f -a || true && sudo rm -R dbuzz-dev-build/ && git clone -b dev [email protected]:d-buzz/d.buzz-client.git dbuzz-dev-build && cd dbuzz-dev-build/ && sudo docker-compose -f docker-compose.dev.yml up -d --build' | ||
- discord/status: | ||
success_message: development build successfully deployed on https://next.d.buzz | ||
failure_message: development build was not deployed on https://next.d.buzz | ||
webhook: https://discordapp.com/api/webhooks/747082285828014170/6TLGC1_wgAAT91n5s3PYZxC9n2_Tj5BzqHQo2tO9miZxnVGKWusD3YA-pO2GjVvOWzuF | ||
|
||
workflows: | ||
environment_builds: | ||
jobs: | ||
- dev_build_test: | ||
filters: | ||
branches: | ||
ignore: master | ||
- prod_build_test: | ||
filters: | ||
branches: | ||
only: master | ||
- dev_build_deploy: | ||
requires: | ||
- dev_build_test | ||
filters: | ||
branches: | ||
only: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# pull official base image | ||
FROM node:13.12.0-alpine as build | ||
|
||
# set working directory | ||
WORKDIR /app | ||
|
||
# add `/app/node_modules/.bin` to $PATH | ||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
# install app dependencies | ||
COPY package.json ./ | ||
COPY package-lock.json ./ | ||
RUN npm install --silent | ||
|
||
# add app | ||
COPY . ./ | ||
RUN npm run build:dev | ||
|
||
# copy build to nginx | ||
FROM nginx:latest | ||
COPY --from=build /app/build /usr/share/nginx/html | ||
|
||
# copy nginx config | ||
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf | ||
EXPOSE 3002 | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
development-build: | ||
container_name: dbuzz-development | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
ports: | ||
- '3002:3002' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
server { | ||
|
||
listen 3002; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
add_header Cache-Control no-store always; | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
|
||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.