Let Dockerfile to the build #4
1 changed files with 1 additions and 4 deletions
|
@ -1,13 +1,10 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: node:20.2.0-alpine3.16
|
image: alpine:3.14
|
||||||
secrets: [docker_password, docker_username]
|
secrets: [docker_password, docker_username]
|
||||||
commands:
|
commands:
|
||||||
# Install deps
|
# Install deps
|
||||||
- apk add docker docker-compose jq
|
- apk add docker docker-compose jq
|
||||||
# Build app
|
|
||||||
- yarn install --frozen-lockfile
|
|
||||||
- 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
|
- echo "TAG=$(jq -r .version ./package.json)" >> .env
|
||||||
|
|
Loading…
Reference in a new issue