Upload tag
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Alessio Davoli 2023-07-10 18:39:52 +02:00
parent db5a8cf9e4
commit daf761f21d

View file

@ -6,11 +6,11 @@ pipeline:
- apk add --no-cache openssh docker docker-compose jq
################### Provisioning
- 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 ./frontend/package.json)" >> .env
- echo "ORIGIN=https://pianello.webdeploy.it" >> .env
- docker-compose -f docker-compose.build.yml build
- docker push git.webdeploy.it/pianello/frontend:latest
- docker push git.webdeploy.it/pianello/frontend:$(jq -r .version ./package.json)
- docker push git.webdeploy.it/pianello/frontend:$(jq -r .version ./frontend/package.json)
# DEPLOY STUFF
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh