test avec woodpecker
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
François Pelletier 2024-02-04 00:07:19 -05:00
parent a28c38a2dc
commit 0905dd4aff

View file

@ -1,12 +1,20 @@
steps:
- name: login
- name: docker
image: plugins/docker
commands:
- docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD}
- export TAG=$(openssl rand -hex 8)
- docker build --rm=true -f Dockerfile -t $TAG .
- docker tag $TAG $${DOCKERHUB_USERNAME}/point-median-backend:latest
- docker push $${DOCKERHUB_USERNAME}/point-median-backend:latest
secrets: [ dockerhub_username, dockerhub_password ]
- docker tag $TAG $${DOCKERHUB_USERNAME}/$${APP}:latest
- docker push $${DOCKERHUB_USERNAME}/$${APP}:latest
secrets: [ dockerhub_username, dockerhub_password, app ]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- name: caprover
image: plugins/docker
commands:
- docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD}
- docker run --network=host caprover/cli-caprover:2.2.3 caprover deploy --caproverUrl "$${CAPROVER_URL}" --caproverPassword "$${CAPROVER_PASSWORD}" -a "$${APP}" -i $${DOCKERHUB_USERNAME}/$${CAPROVER_APP}
secrets: [ dockerhub_username, dockerhub_password, caprover_url, caprover_password, app]
volumes:
- /var/run/docker.sock:/var/run/docker.sock