-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to secrets manager; added foundation for e2e testing; began i…
…nitialization for pipeline builds
- Loading branch information
1 parent
29d36a5
commit bdfab94
Showing
22 changed files
with
9,846 additions
and
421 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Dockerfile | ||
.dockerignore | ||
node_modules | ||
npm-debug.log | ||
dist |
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,20 @@ | ||
kind: pipeline | ||
type: docker | ||
name: default | ||
steps: | ||
- name: build backend | ||
image: docker.thiccdata.io/nvm-node-debian:latest | ||
commands: | ||
- docker build -t docker.thiccdata.io/mtg-event-manager-backend:latest -f ./backend/Dockerfile ./ | ||
- docker push docker.thiccdata.io/mtg-event-manager-backend:latest | ||
volumes: | ||
- name: docker | ||
path: /var/run/docker.sock | ||
trigger: | ||
branch: | ||
- main | ||
|
||
volumes: | ||
- name: docker | ||
host: | ||
path: /var/run/docker.sock |
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,25 @@ | ||
FROM node:18.14.2-alpine As build | ||
|
||
WORKDIR /home/node/app | ||
|
||
COPY --chown=node:node package*.json ./ | ||
|
||
RUN npm ci | ||
|
||
USER node | ||
|
||
COPY --chown=node:node . . | ||
|
||
RUN npm run build | ||
|
||
ENV NODE_ENV production | ||
|
||
RUN npm ci --only=production && npm cache clean --force | ||
|
||
|
||
FROM node:18.14.2-alpine As production | ||
|
||
COPY --chown=node:node --from=build /home/node/app/node_modules ./node_modules | ||
COPY --chown=node:node --from=build /home/node/app/dist ./dist | ||
|
||
CMD ["node", "dist/main.js"] |
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,4 @@ | ||
version: 3.7 | ||
services: | ||
s3_provider: | ||
image: minio |
Oops, something went wrong.