Use smaller container for build

This commit is contained in:
Alessio Davoli 2023-05-31 20:44:50 +02:00
parent 0240a9759c
commit f5ee1f9a01

View file

@ -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