Let Dockerfile to the build #4
1 changed files with 1 additions and 4 deletions
|
@ -1,13 +1,10 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: node:20.2.0-alpine3.16
|
||||
image: alpine:3.14
|
||||
secrets: [docker_password, docker_username]
|
||||
commands:
|
||||
# Install deps
|
||||
- apk add docker docker-compose jq
|
||||
# Build app
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue