Compare commits

..

3 commits

Author SHA1 Message Date
François Pelletier
1caf5915b6 Merge remote-tracking branch 'origin/woodpecker-test' into woodpecker-test
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful
2024-02-05 17:24:37 -05:00
François Pelletier
7d7996bfc9 ajout woodpecker 2024-02-05 17:23:46 -05:00
934656a14a ajout woodpecker 2024-02-05 22:20:03 +00:00

19
.woodpecker.yaml Normal file
View file

@ -0,0 +1,19 @@
steps:
- name: docker
image: plugins/docker
commands:
- docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD}
- docker build --rm=true -f Dockerfile -t $${CI_COMMIT_REF} .
- docker tag $${CI_COMMIT_REF} $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:latest
- docker push $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:latest
secrets: [ dockerhub_username, dockerhub_password ]
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 "$${CI_REPO_NAME}" -i docker.io/$${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}
secrets: [ dockerhub_username, dockerhub_password, caprover_url, caprover_password ]
volumes:
- /var/run/docker.sock:/var/run/docker.sock