This commit is contained in:
parent
545fc85991
commit
dc83fe5646
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue