Let Dockerfile to the build #4

Merged
zbolo-wd merged 11 commits from move-docker-compose into main 2023-06-27 15:59:45 +02:00
Showing only changes of commit f5ee1f9a01 - Show all commits

View file

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