Use our own image
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Alessio Davoli 2023-09-25 17:31:36 +02:00
parent 545fc85991
commit dc83fe5646

View file

@ -1,6 +1,6 @@
steps: steps:
build_and_deploy: build_and_deploy:
image: alpine:3 image: git.webdeploy.it/webdeploy/alpine
secrets: [docker_password, docker_username, runner_private_key] secrets: [docker_password, docker_username, runner_private_key]
commands: commands:
- apk add --no-cache openssh docker docker-compose jq - apk add --no-cache openssh docker docker-compose jq
@ -8,7 +8,7 @@ steps:
- 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 ./frontend/package.json)" >> .env - echo "TAG=$(jq -r .version ./frontend/package.json)" >> .env
- echo "ORIGIN=https://pianello.webdeploy.it" >> .env - echo "ORIGIN=https://pianello.webdeploy.it" >> .env
- docker-compose -f docker-compose.build.yml build - docker-compose -f docker-compose.build.yml build
- docker push git.webdeploy.it/pianello/frontend:latest - docker push git.webdeploy.it/pianello/frontend:latest
- docker push git.webdeploy.it/pianello/frontend:$(jq -r .version ./frontend/package.json) - docker push git.webdeploy.it/pianello/frontend:$(jq -r .version ./frontend/package.json)
# DEPLOY STUFF # DEPLOY STUFF