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
|
# Install deps
|
||||||
- apk add docker docker-compose jq
|
- apk add docker docker-compose jq
|
||||||
# Build app
|
# Build app
|
||||||
- npm i
|
- yarn install --frozen-lockfile
|
||||||
- npm run build
|
- yarn build
|
||||||
# Log into docker registry
|
# Log into docker registry
|
||||||
- echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username "$${DOCKER_USERNAME}" git.webdeploy.it
|
- echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username "$${DOCKER_USERNAME}" git.webdeploy.it
|
||||||
|
- echo "TAG=$(jq -r .version ./package.json)" >> .env
|
||||||
# Build image
|
# 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:latest
|
||||||
|
- docker push git.webdeploy.it/pianello/pianello-web-app:$(jq -r .version ./package.json)
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,4 @@ EXPOSE 80
|
||||||
|
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
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:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
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",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --host 0.0.0.0",
|
"dev": "vite --host 0.0.0.0",
|
||||||
"build": "vite build && build-sw.js"
|
"build": "vite build && ./build-sw.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vite": "^4.3.2",
|
"vite": "^4.3.2",
|
||||||
|
|
Loading…
Reference in a new issue