From ffbd2feba89fd26cf354abb6b8abe30fb21b3da7 Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sat, 9 Mar 2024 12:45:51 +0100 Subject: [PATCH 1/7] first try --- .woodpecker.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 00000000..99acb0ed --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,6 @@ +docker-build: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: codeberg.org/${CI_REPO_OWNER}/pyfedi + registry: codeberg.org + dry-run: true From 10fd92824dca9db7ab3ac05b4bdfd0b3a8edef8f Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sat, 9 Mar 2024 12:47:09 +0100 Subject: [PATCH 2/7] learning while not reading docs --- .woodpecker.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 99acb0ed..32b6b5c6 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,3 +1,6 @@ +steps: + - name: docker-build + docker-build: image: woodpeckerci/plugin-docker-buildx settings: From 2da76a5cc1458b4f33c0cc90c79625498d779794 Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sat, 9 Mar 2024 12:53:11 +0100 Subject: [PATCH 3/7] maybe this time is right --- .woodpecker.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 32b6b5c6..96c3504a 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,9 +1,7 @@ steps: - name: docker-build - -docker-build: - image: woodpeckerci/plugin-docker-buildx - settings: - repo: codeberg.org/${CI_REPO_OWNER}/pyfedi - registry: codeberg.org - dry-run: true + image: woodpeckerci/plugin-docker-buildx + settings: + repo: codeberg.org/${CI_REPO_OWNER}/pyfedi + registry: codeberg.org + dry-run: true From d8169b0a4f7feb28bc16a2ae9df986bc0d69b9ab Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sat, 9 Mar 2024 16:42:50 +0100 Subject: [PATCH 4/7] removing dry run mode --- .woodpecker.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 96c3504a..3f467f3e 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -4,4 +4,3 @@ steps: settings: repo: codeberg.org/${CI_REPO_OWNER}/pyfedi registry: codeberg.org - dry-run: true From 680a2bb8e5c81786dbc1c11e506b1d4cf5fbbdcd Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sat, 9 Mar 2024 16:55:35 +0100 Subject: [PATCH 5/7] secrets to push --- .woodpecker.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 3f467f3e..ccf6fffb 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -4,3 +4,7 @@ steps: settings: repo: codeberg.org/${CI_REPO_OWNER}/pyfedi registry: codeberg.org + tags: latest + username: ${CI_REPO_OWNER} + password: + from_secret: cb_token From d477fcd60777e276271b7ed9ca0e5294f0584fc4 Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sat, 9 Mar 2024 16:57:56 +0100 Subject: [PATCH 6/7] moved secrets to ui --- .woodpecker.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index ccf6fffb..4b2a5ab2 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -6,5 +6,3 @@ steps: registry: codeberg.org tags: latest username: ${CI_REPO_OWNER} - password: - from_secret: cb_token From 8e6896169081b4db2f4024aab841bc878124356a Mon Sep 17 00:00:00 2001 From: Martynas Sklizmantas Date: Sat, 9 Mar 2024 17:01:21 +0100 Subject: [PATCH 7/7] this is not how it works :) --- .woodpecker.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 4b2a5ab2..ccf6fffb 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -6,3 +6,5 @@ steps: registry: codeberg.org tags: latest username: ${CI_REPO_OWNER} + password: + from_secret: cb_token