From 9f66182e2737e8919bd8f618a871a1123a296854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 19:43:32 -0500 Subject: [PATCH 01/34] test avec woodpecker --- .woodpecker.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..b8874a2 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,10 @@ +steps: + - name: Build image + image: docker:20-dind + commands: + - docker build --rm -t local/point-median-backend . + - docker run --network=host caprover/cli-caprover:2.2.3 caprover deploy --caproverUrl "$CAPROVER_URL" --caproverPassword "$CAPROVER_PASSWORD" -a "$CAPROVER_APP" -i local/point-median-backend + volumes: + - /var/run/docker.sock:/var/run/docker.sock + secrets: [ caprover_url, caprover_app, caprover_password ] + From c355f69a58b722ed2e717a8df215b01a0c6032f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 19:48:08 -0500 Subject: [PATCH 02/34] test avec woodpecker --- .woodpecker.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index b8874a2..c03d13c 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -4,7 +4,5 @@ steps: commands: - docker build --rm -t local/point-median-backend . - docker run --network=host caprover/cli-caprover:2.2.3 caprover deploy --caproverUrl "$CAPROVER_URL" --caproverPassword "$CAPROVER_PASSWORD" -a "$CAPROVER_APP" -i local/point-median-backend - volumes: - - /var/run/docker.sock:/var/run/docker.sock secrets: [ caprover_url, caprover_app, caprover_password ] From b91e14b8dac3571f730b6f0bf97a910d289e7232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 20:10:03 -0500 Subject: [PATCH 03/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index c03d13c..8a8255e 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,6 +1,6 @@ steps: - name: Build image - image: docker:20-dind + image: docker commands: - docker build --rm -t local/point-median-backend . - docker run --network=host caprover/cli-caprover:2.2.3 caprover deploy --caproverUrl "$CAPROVER_URL" --caproverPassword "$CAPROVER_PASSWORD" -a "$CAPROVER_APP" -i local/point-median-backend From e2655a02f111462e6e39d5e224c5a8c2fd47c59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 21:01:53 -0500 Subject: [PATCH 04/34] test avec woodpecker --- .woodpecker.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 8a8255e..ddca24b 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,8 +1,11 @@ steps: - - name: Build image - image: docker - commands: - - docker build --rm -t local/point-median-backend . - - docker run --network=host caprover/cli-caprover:2.2.3 caprover deploy --caproverUrl "$CAPROVER_URL" --caproverPassword "$CAPROVER_PASSWORD" -a "$CAPROVER_APP" -i local/point-median-backend - secrets: [ caprover_url, caprover_app, caprover_password ] - + publish: + image: woodpeckerci/plugin-docker-buildx + settings: + platforms: linux/amd64 + repo: ${CI_REPO_OWNER}/point-median-backend + registry: service.jevalide.ca/registre + tags: latest + username: ${CI_REPO_OWNER} + password: + from_secret: service_pwd From debc64267bed3580d85a4e0abcd7c4b1e9c4e10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 21:31:00 -0500 Subject: [PATCH 05/34] test avec woodpecker --- .woodpecker.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index ddca24b..57298a2 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,4 +1,8 @@ steps: + first-job: + image: busybox + commands: + - echo "first run" publish: image: woodpeckerci/plugin-docker-buildx settings: From 405661e30cc1e60f80eccc1141208313f5bdd70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 22:28:33 -0500 Subject: [PATCH 06/34] test avec woodpecker --- .woodpecker.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 57298a2..18b1659 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,15 +1,10 @@ steps: - first-job: - image: busybox - commands: - - echo "first run" publish: image: woodpeckerci/plugin-docker-buildx settings: - platforms: linux/amd64 - repo: ${CI_REPO_OWNER}/point-median-backend - registry: service.jevalide.ca/registre + repo: franc00018/point-median-backend tags: latest - username: ${CI_REPO_OWNER} + username: + from_secret: dockerhub_username password: - from_secret: service_pwd + from_secret: dockerhub_password \ No newline at end of file From 840ff9be7ef2a665e7fc8896d6ebba1ccae13209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 22:32:13 -0500 Subject: [PATCH 07/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 18b1659..0c7d62a 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,5 +1,5 @@ steps: - publish: + - name: publish image: woodpeckerci/plugin-docker-buildx settings: repo: franc00018/point-median-backend From ce9de90374bc7107237004e5979448b48430f7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 22:34:41 -0500 Subject: [PATCH 08/34] test avec woodpecker --- .woodpecker.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 0c7d62a..c2b50b9 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -4,7 +4,5 @@ steps: settings: repo: franc00018/point-median-backend tags: latest - username: - from_secret: dockerhub_username - password: - from_secret: dockerhub_password \ No newline at end of file + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_PASSWORD \ No newline at end of file From 8f640d977428c6c1bebe9e355733982cb8b308ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 22:40:57 -0500 Subject: [PATCH 09/34] test avec woodpecker --- .woodpecker.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index c2b50b9..26582e5 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,8 +1,10 @@ steps: - name: publish - image: woodpeckerci/plugin-docker-buildx + image: woodpeckerci/plugin-docker settings: repo: franc00018/point-median-backend tags: latest username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_PASSWORD \ No newline at end of file + password: $DOCKERHUB_PASSWORD + volumes: + - /var/run/docker.sock:/var/run/docker.sock From 73a2ef7ece9308b63fbd77fdb1e30a1b4a50a6c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 22:42:49 -0500 Subject: [PATCH 10/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 26582e5..b0587d3 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,6 +1,6 @@ steps: - name: publish - image: woodpeckerci/plugin-docker + image: woodpeckerci/plugin-docker-buildx settings: repo: franc00018/point-median-backend tags: latest From 4602b5a06d640eeb79c4c0f5ab3d92776aab0637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 22:43:45 -0500 Subject: [PATCH 11/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index b0587d3..f0779d4 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,6 +1,6 @@ steps: - name: publish - image: woodpeckerci/plugin-docker-buildx + image: plugins/docker settings: repo: franc00018/point-median-backend tags: latest From cd388a1244f2372d590869670f27b9055a523ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 22:57:17 -0500 Subject: [PATCH 12/34] test avec woodpecker --- .woodpecker.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index f0779d4..e78726b 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -8,3 +8,6 @@ steps: password: $DOCKERHUB_PASSWORD volumes: - /var/run/docker.sock:/var/run/docker.sock + secrets: + - dockerhub_username + - dockerhub_password From 7ee7bbe7588b320ed98defef4348eb0f4ed592d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 22:58:43 -0500 Subject: [PATCH 13/34] test avec woodpecker --- .woodpecker.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index e78726b..e602c82 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -4,10 +4,6 @@ steps: settings: repo: franc00018/point-median-backend tags: latest - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_PASSWORD volumes: - /var/run/docker.sock:/var/run/docker.sock - secrets: - - dockerhub_username - - dockerhub_password + From 7073ca568a553549c939ca2247f9e3b245e92796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:19:34 -0500 Subject: [PATCH 14/34] test avec woodpecker --- .woodpecker.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index e602c82..83a069b 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -2,8 +2,10 @@ steps: - name: publish image: plugins/docker settings: - repo: franc00018/point-median-backend + repo: $DOCKERHUB_USERNAME/point-median-backend tags: latest - volumes: - - /var/run/docker.sock:/var/run/docker.sock - + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_PASSWORD + secrets: + - dockerhub_username + - dockerhub_password From 5b1593d8fae6c173965d36fd659c3af0b7f5b1da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:20:06 -0500 Subject: [PATCH 15/34] test avec woodpecker --- .woodpecker.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 83a069b..f97f755 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -4,8 +4,3 @@ steps: settings: repo: $DOCKERHUB_USERNAME/point-median-backend tags: latest - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_PASSWORD - secrets: - - dockerhub_username - - dockerhub_password From 7cfe600725a3935e9fc31965f857dd00f83c6e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:21:31 -0500 Subject: [PATCH 16/34] test avec woodpecker --- .woodpecker.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index f97f755..c479b71 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -4,3 +4,5 @@ steps: settings: repo: $DOCKERHUB_USERNAME/point-median-backend tags: latest + secrets: + - dockerhub_username From e4892b52c4530b2d84b4ea2149adbfbb1f2f6dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:22:40 -0500 Subject: [PATCH 17/34] test avec woodpecker --- .woodpecker.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index c479b71..982df6d 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -2,7 +2,5 @@ steps: - name: publish image: plugins/docker settings: - repo: $DOCKERHUB_USERNAME/point-median-backend + repo: franc00018/point-median-backend tags: latest - secrets: - - dockerhub_username From b7b0dbd750abab273336a020d4a8291e32e42d0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:30:31 -0500 Subject: [PATCH 18/34] test avec woodpecker --- .woodpecker.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 982df6d..2fe3dc1 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -3,4 +3,7 @@ steps: image: plugins/docker settings: repo: franc00018/point-median-backend + registry: https://index.docker.io/v1/ tags: latest + secrets: + - dockerhub_username From 6b457606f45db0e0901d002ec30ca6ac73baa9db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:38:18 -0500 Subject: [PATCH 19/34] test avec woodpecker --- .woodpecker.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 2fe3dc1..6fae6ed 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -5,5 +5,7 @@ steps: repo: franc00018/point-median-backend registry: https://index.docker.io/v1/ tags: latest + commands: + - docker login docker.io secrets: - dockerhub_username From 5baf617abf086ec8b45454e953cc937938351c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:40:24 -0500 Subject: [PATCH 20/34] test avec woodpecker --- .woodpecker.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 6fae6ed..9148ec2 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,11 +1,11 @@ steps: + - name: login + image: plugins/docker + commands: + - docker login docker.io - name: publish image: plugins/docker settings: repo: franc00018/point-median-backend registry: https://index.docker.io/v1/ tags: latest - commands: - - docker login docker.io - secrets: - - dockerhub_username From 8cd9094b441e9ebb2ba827c60f2587856d088bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:41:37 -0500 Subject: [PATCH 21/34] test avec woodpecker --- .woodpecker.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 9148ec2..3f59fdb 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -2,7 +2,10 @@ steps: - name: login image: plugins/docker commands: - - docker login docker.io + - docker login docker.io -u DOCKERHUB_USERNAME -p DOCKERHUB_PASSWORD + secrets: + - dockerhub_username + - dockerhub_password - name: publish image: plugins/docker settings: From 9a71af6b859210e6f15f3123e453df250dee9ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:42:16 -0500 Subject: [PATCH 22/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 3f59fdb..5ee1cfd 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -2,7 +2,7 @@ steps: - name: login image: plugins/docker commands: - - docker login docker.io -u DOCKERHUB_USERNAME -p DOCKERHUB_PASSWORD + - docker login docker.io -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} secrets: - dockerhub_username - dockerhub_password From 36cce0e464cc468a678c546bdeb53f777320df3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:43:45 -0500 Subject: [PATCH 23/34] test avec woodpecker --- .woodpecker.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 5ee1cfd..486c102 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -3,9 +3,6 @@ steps: image: plugins/docker commands: - docker login docker.io -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} - secrets: - - dockerhub_username - - dockerhub_password - name: publish image: plugins/docker settings: From 910c7d664eabc54614ddf235bc5af73305fdf240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:44:46 -0500 Subject: [PATCH 24/34] test avec woodpecker --- .woodpecker.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 486c102..c880e58 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -3,6 +3,7 @@ steps: image: plugins/docker commands: - docker login docker.io -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} + secrets: [ dockerhub_username, dockerhub_password ] - name: publish image: plugins/docker settings: From d67320a45b7300d4f2240ba6151a58665e7db26b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:47:48 -0500 Subject: [PATCH 25/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index c880e58..03fcced 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -2,7 +2,7 @@ steps: - name: login image: plugins/docker commands: - - docker login docker.io -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} + - docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD} secrets: [ dockerhub_username, dockerhub_password ] - name: publish image: plugins/docker From 0610d104a83536b1197a45d9f5c7304a28270d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:50:31 -0500 Subject: [PATCH 26/34] test avec woodpecker --- .woodpecker.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 03fcced..299e2ef 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -10,3 +10,6 @@ steps: repo: franc00018/point-median-backend registry: https://index.docker.io/v1/ tags: latest + username: $${DOCKERHUB_USERNAME} + password: $${DOCKERHUB_PASSWORD} + secrets: [ dockerhub_username, dockerhub_password ] From d90a45334223b36258804fd9b194f164a81d28e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:56:59 -0500 Subject: [PATCH 27/34] test avec woodpecker --- .woodpecker.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 299e2ef..6cb5cd2 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -3,13 +3,8 @@ steps: image: plugins/docker commands: - docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD} - secrets: [ dockerhub_username, dockerhub_password ] - - name: publish - image: plugins/docker - settings: - repo: franc00018/point-median-backend - registry: https://index.docker.io/v1/ - tags: latest - username: $${DOCKERHUB_USERNAME} - password: $${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 ] From 693023e6f8b680ce44d4c1db986f3d57403f2336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:57:58 -0500 Subject: [PATCH 28/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 6cb5cd2..ed4c8f2 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -4,7 +4,7 @@ steps: 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 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 ] From a28c38a2dcfc37edca7dfafc0a853ab1ab6b0eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sat, 3 Feb 2024 23:59:18 -0500 Subject: [PATCH 29/34] test avec woodpecker --- .woodpecker.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index ed4c8f2..8f077d5 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -8,3 +8,5 @@ steps: - docker tag $TAG $${DOCKERHUB_USERNAME}/point-median-backend:latest - docker push $${DOCKERHUB_USERNAME}/point-median-backend:latest secrets: [ dockerhub_username, dockerhub_password ] + volumes: + - /var/run/docker.sock:/var/run/docker.sock From 0905dd4aff69ee1753d0030a961300dd126c7d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sun, 4 Feb 2024 00:07:19 -0500 Subject: [PATCH 30/34] test avec woodpecker --- .woodpecker.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 8f077d5..e167006 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -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 \ No newline at end of file From 4b392b49bf4420f275852d934bb844f566e90812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sun, 4 Feb 2024 00:08:52 -0500 Subject: [PATCH 31/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index e167006..7be386e 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -14,7 +14,7 @@ steps: 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} + - docker run --network=host caprover/cli-caprover:2.2.3 caprover deploy --caproverUrl "$${CAPROVER_URL}" --caproverPassword "$${CAPROVER_PASSWORD}" -a "$${APP}" -i https://docker.io/$${DOCKERHUB_USERNAME}/$${CAPROVER_APP} secrets: [ dockerhub_username, dockerhub_password, caprover_url, caprover_password, app] volumes: - /var/run/docker.sock:/var/run/docker.sock \ No newline at end of file From 239f169285892038d5174064e122f169a747e527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sun, 4 Feb 2024 00:09:50 -0500 Subject: [PATCH 32/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 7be386e..2a53b74 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -14,7 +14,7 @@ steps: 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 https://docker.io/$${DOCKERHUB_USERNAME}/$${CAPROVER_APP} + - docker run --network=host caprover/cli-caprover:2.2.3 caprover deploy --caproverUrl "$${CAPROVER_URL}" --caproverPassword "$${CAPROVER_PASSWORD}" -a "$${APP}" -i https://docker.io/$${DOCKERHUB_USERNAME}/$${APP} secrets: [ dockerhub_username, dockerhub_password, caprover_url, caprover_password, app] volumes: - /var/run/docker.sock:/var/run/docker.sock \ No newline at end of file From ac29bc3353abb07b9a09bfb70f6db8982fd0b925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sun, 4 Feb 2024 00:14:02 -0500 Subject: [PATCH 33/34] test avec woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 2a53b74..2024128 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -14,7 +14,7 @@ steps: 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 https://docker.io/$${DOCKERHUB_USERNAME}/$${APP} + - docker run --network=host caprover/cli-caprover:2.2.3 caprover deploy --caproverUrl "$${CAPROVER_URL}" --caproverPassword "$${CAPROVER_PASSWORD}" -a "$${APP}" -i docker.io/$${DOCKERHUB_USERNAME}/$${APP} secrets: [ dockerhub_username, dockerhub_password, caprover_url, caprover_password, app] volumes: - /var/run/docker.sock:/var/run/docker.sock \ No newline at end of file From 1e6b2b2959d02a1279a61d17030e14cc60a8ec93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 17:15:49 -0500 Subject: [PATCH 34/34] test avec woodpecker --- .woodpecker.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 2024128..ac075bd 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -3,18 +3,17 @@ steps: 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}/$${APP}:latest - - docker push $${DOCKERHUB_USERNAME}/$${APP}:latest - secrets: [ dockerhub_username, dockerhub_password, app ] + - 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 "$${APP}" -i docker.io/$${DOCKERHUB_USERNAME}/$${APP} - secrets: [ dockerhub_username, dockerhub_password, caprover_url, caprover_password, app] + - 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 \ No newline at end of file + - /var/run/docker.sock:/var/run/docker.sock