Compare commits
8 commits
909d978f4f
...
d321b6660c
Author | SHA1 | Date | |
---|---|---|---|
d321b6660c | |||
c3428e1b0a | |||
bdc5897f5a | |||
377d8601a7 | |||
9bfba0ac38 | |||
16fd12287e | |||
ce515400d8 | |||
6bac5e2a34 |
6 changed files with 2630 additions and 4650 deletions
|
@ -6,13 +6,15 @@ pipeline:
|
|||
# Install deps
|
||||
- apk add docker docker-compose jq
|
||||
# Build app
|
||||
- npm i
|
||||
- npm run build
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn build
|
||||
# Log into docker registry
|
||||
- echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username "$${DOCKER_USERNAME}" git.webdeploy.it
|
||||
- echo "TAG=$(jq -r .version ./package.json)" >> .env
|
||||
# Build image
|
||||
- docker-compose -f docker-compose.build.yml build pianello-web-app
|
||||
- docker-compose -f docker-compose.build.yml build
|
||||
- docker push git.webdeploy.it/pianello/pianello-web-app:latest
|
||||
- docker push git.webdeploy.it/pianello/pianello-web-app:$(jq -r .version ./package.json)
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
|
|
|
@ -4,4 +4,4 @@ EXPOSE 80
|
|||
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
COPY ./build/ /usr/share/nginx/html/
|
||||
COPY ./dist/ /usr/share/nginx/html/
|
||||
|
|
|
@ -7,3 +7,7 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
||||
version_tag:
|
||||
extends: pianello-web-app
|
||||
image: git.webdeploy.it/pianello/pianello-web-app:${TAG}
|
||||
|
|
4645
package-lock.json
generated
4645
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,7 +5,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --host 0.0.0.0",
|
||||
"build": "vite build && build-sw.js"
|
||||
"build": "vite build && ./build-sw.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^4.3.2",
|
||||
|
|
Loading…
Reference in a new issue