Merge pull request #2 from kitsteam/improve-docker-ignore

This commit is contained in:
JannikStreek 2023-12-22 17:43:27 +01:00 committed by GitHub
commit a4004e8707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 54 deletions

View File

@ -1,18 +1,10 @@
.dockerignore
.editorconfig
.env*
.git
.github
.gitignore
.prettier*
.vscode
ca/*.crt
ca/*.key
ca/*.pem
ca/*.req
docker-compose*
Dockerfile*
LICENSE
dist*
node_modules*
README.md
*
!.eslintrc.js
!.prettierrc
!nest-cli.json
!src/
!test/
!package-lock.json
!package.json
!tsconfig.build.json
!tsconfig.json

View File

@ -1,36 +0,0 @@
include:
- project: "to-be-continuous/docker"
ref: "2.0.0"
file: "/templates/gitlab-ci-docker.yml"
variables:
PROD_REF: "/^main$/"
AUTODEPLOY_TO_PROD: "true" # Always publish
DOCKER_REGISTRY_RELEASE_USER: kiliandeca
# DOCKER_REGISTRY_RELEASE_PASSWORD: # Defined in CI/CD Settings
DOCKER_RELEASE_IMAGE: docker.io/kiliandeca/excalidraw-storage-backend:latest
stages:
- build
- package-build
- package-test
- publish
.node-template:
image: node:14-alpine
before_script:
- npm ci --cache .npm --prefer-offline
cache:
key: npm-cache
paths:
- .npm-cache
node-build:
stage: build
extends: .node-template
script:
- npm run build
artifacts:
paths:
- dist