From b564afa0534e75e3dd98b6499ad6ff1cccf87b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:30:10 -0500 Subject: [PATCH 1/7] ajout --network=host dans le docker run --- .woodpecker.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/ .woodpecker.yaml b/ .woodpecker.yaml new file mode 100644 index 0000000..aaf6c7c --- /dev/null +++ b/ .woodpecker.yaml @@ -0,0 +1,20 @@ +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_TAG} . + - docker push $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:$${CI_COMMIT_TAG} + - docker tag $${CI_COMMIT_TAG} $${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 \ No newline at end of file -- 2.39.5 From 5dc2b8ccb28c3c7bce1447f1c92716260890356e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:32:38 -0500 Subject: [PATCH 2/7] ajout du fichier woodpecker --- .woodpecker.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ .woodpecker.yaml b/ .woodpecker.yaml index aaf6c7c..22b68c3 100644 --- a/ .woodpecker.yaml +++ b/ .woodpecker.yaml @@ -17,4 +17,4 @@ steps: - 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 -- 2.39.5 From 5be9568b57266ee6efb5f02c2e2be7597e7111fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:40:39 -0500 Subject: [PATCH 3/7] ajout du fichier woodpecker --- CHANGE | 1 + 1 file changed, 1 insertion(+) create mode 100644 CHANGE diff --git a/CHANGE b/CHANGE new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/CHANGE @@ -0,0 +1 @@ +0 \ No newline at end of file -- 2.39.5 From a4f85112b06d84c5a6a9e2b0b7e9987d3e092a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:49:11 -0500 Subject: [PATCH 4/7] CHANGE --- CHANGE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGE b/CHANGE index c227083..56a6051 100644 --- a/CHANGE +++ b/CHANGE @@ -1 +1 @@ -0 \ No newline at end of file +1 \ No newline at end of file -- 2.39.5 From 85ba73c82b30770333c1f562ef6512dd305cfd4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:56:35 -0500 Subject: [PATCH 5/7] ajout woodpecker --- .woodpecker.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ .woodpecker.yaml b/ .woodpecker.yaml index 22b68c3..36850f1 100644 --- a/ .woodpecker.yaml +++ b/ .woodpecker.yaml @@ -3,9 +3,9 @@ steps: image: plugins/docker commands: - docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD} - - docker build --rm=true -f Dockerfile -t $${CI_COMMIT_TAG} . - - docker push $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:$${CI_COMMIT_TAG} - - docker tag $${CI_COMMIT_TAG} $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:latest + - docker build --rm=true -f Dockerfile -t $${CI_COMMIT_REF} . + - docker push $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:$${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: -- 2.39.5 From 89ca65905cea4f3f122a74b9de84745c7be0b31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 17:06:13 -0500 Subject: [PATCH 6/7] ajout woodpecker --- .woodpecker.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/ .woodpecker.yaml b/ .woodpecker.yaml index 36850f1..ac075bd 100644 --- a/ .woodpecker.yaml +++ b/ .woodpecker.yaml @@ -4,7 +4,6 @@ steps: commands: - docker login docker.io -u $${DOCKERHUB_USERNAME} -p $${DOCKERHUB_PASSWORD} - docker build --rm=true -f Dockerfile -t $${CI_COMMIT_REF} . - - docker push $${DOCKERHUB_USERNAME}/$${CI_REPO_NAME}:$${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 ] -- 2.39.5 From 0c397090b0553233e41bd99fb70b8be8d5ec8585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 17:11:20 -0500 Subject: [PATCH 7/7] ajout woodpecker --- CHANGE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGE b/CHANGE index 56a6051..d8263ee 100644 --- a/CHANGE +++ b/CHANGE @@ -1 +1 @@ -1 \ No newline at end of file +2 \ No newline at end of file -- 2.39.5