From f6968eb6e609049e621645e02e5d3d76d06abc22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:36:14 -0500 Subject: [PATCH 1/5] ajout woodpecker --- .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..22b68c3 --- /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 From 7dfd4745e409cfc9e0c9aba186a6bf0b45f8c71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:40:12 -0500 Subject: [PATCH 2/5] ajout 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 From bd657abe7905fab5ac69395f0a9581657e2dbadb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:49:33 -0500 Subject: [PATCH 3/5] ajout woodpecker --- 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 From be9c11e663de43151c48e230c61656fa840bbf43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 16:55:51 -0500 Subject: [PATCH 4/5] 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: From 8ca179ff1db3ca85125e5a48430a6fe2287e59a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Mon, 5 Feb 2024 17:06:35 -0500 Subject: [PATCH 5/5] 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 ]