From 8b6a44a53d0b5b5f61dd597ae8d698a873868305 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 8 Feb 2024 15:41:52 +0100 Subject: [woodpecker] convert drone pipelines to woodpecker --- .woodpecker/publish.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .woodpecker/publish.yaml (limited to '.woodpecker/publish.yaml') diff --git a/.woodpecker/publish.yaml b/.woodpecker/publish.yaml new file mode 100644 index 00000000..7e004ddd --- /dev/null +++ b/.woodpecker/publish.yaml @@ -0,0 +1,33 @@ +when: + event: + - deployment + - cron + +depends_on: + - release + +steps: + - name: multiarch-docker + image: nixpkgs/nix:nixos-22.05 + environment: + HOME: "/root" + secrets: + - docker_auth + commands: + - mkdir -p /root/.docker + - echo $DOCKER_AUTH > /root/.docker/config.json + - sha512sum /root/.docker/config.json + - export CONTAINER_TAG=${CI_COMMIT_TAG:-$CI_COMMIT_SHA} + - nix-shell --attr release --run "multiarch_docker" + + - name: refresh-index + image: nixpkgs/nix:nixos-22.05 + secrets: + - source: garagehq_aws_access_key_id + target: AWS_ACCESS_KEY_ID + - source: garagehq_aws_secret_access_key + target: AWS_SECRET_ACCESS_KEY + commands: + - mkdir -p /etc/nix && cp nix/nix.conf /etc/nix/nix.conf + - nix-shell --attr release --run "refresh_index" + -- cgit v1.2.3 From 4e62e86644ddfd28e01951f8d2f09fc421b0f716 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 8 Feb 2024 18:27:33 +0100 Subject: [woodpecker] disable docker image generation as auth is broken for now --- .woodpecker/publish.yaml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to '.woodpecker/publish.yaml') diff --git a/.woodpecker/publish.yaml b/.woodpecker/publish.yaml index 7e004ddd..b45d379c 100644 --- a/.woodpecker/publish.yaml +++ b/.woodpecker/publish.yaml @@ -7,19 +7,6 @@ depends_on: - release steps: - - name: multiarch-docker - image: nixpkgs/nix:nixos-22.05 - environment: - HOME: "/root" - secrets: - - docker_auth - commands: - - mkdir -p /root/.docker - - echo $DOCKER_AUTH > /root/.docker/config.json - - sha512sum /root/.docker/config.json - - export CONTAINER_TAG=${CI_COMMIT_TAG:-$CI_COMMIT_SHA} - - nix-shell --attr release --run "multiarch_docker" - - name: refresh-index image: nixpkgs/nix:nixos-22.05 secrets: @@ -31,3 +18,15 @@ steps: - mkdir -p /etc/nix && cp nix/nix.conf /etc/nix/nix.conf - nix-shell --attr release --run "refresh_index" +# - name: multiarch-docker +# image: nixpkgs/nix:nixos-22.05 +# environment: +# HOME: "/root" +# secrets: +# - docker_auth +# commands: +# - mkdir -p /root/.docker +# - echo $DOCKER_AUTH > /root/.docker/config.json +# - sha512sum /root/.docker/config.json +# - export CONTAINER_TAG=${CI_COMMIT_TAG:-$CI_COMMIT_SHA} +# - nix-shell --attr release --run "multiarch_docker" -- cgit v1.2.3 From 1c85e5e428d8b449bb0e0933f329bcba3b583697 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 9 Feb 2024 11:19:32 +0100 Subject: [nix-improvements] adapt woodpecker pipelines --- .woodpecker/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.woodpecker/publish.yaml') diff --git a/.woodpecker/publish.yaml b/.woodpecker/publish.yaml index b45d379c..17b33d7f 100644 --- a/.woodpecker/publish.yaml +++ b/.woodpecker/publish.yaml @@ -16,7 +16,7 @@ steps: target: AWS_SECRET_ACCESS_KEY commands: - mkdir -p /etc/nix && cp nix/nix.conf /etc/nix/nix.conf - - nix-shell --attr release --run "refresh_index" + - nix-shell --attr ci --run "refresh_index" # - name: multiarch-docker # image: nixpkgs/nix:nixos-22.05 @@ -29,4 +29,4 @@ steps: # - echo $DOCKER_AUTH > /root/.docker/config.json # - sha512sum /root/.docker/config.json # - export CONTAINER_TAG=${CI_COMMIT_TAG:-$CI_COMMIT_SHA} -# - nix-shell --attr release --run "multiarch_docker" +# - nix-shell --attr ci --run "multiarch_docker" -- cgit v1.2.3 From 1be75fbf4e750d03e1f091016ef44814da674126 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 9 Feb 2024 11:40:35 +0100 Subject: [nix-improvements] fix kaniko and manifest-tool --- .woodpecker/publish.yaml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to '.woodpecker/publish.yaml') diff --git a/.woodpecker/publish.yaml b/.woodpecker/publish.yaml index 17b33d7f..739af2c4 100644 --- a/.woodpecker/publish.yaml +++ b/.woodpecker/publish.yaml @@ -18,15 +18,12 @@ steps: - mkdir -p /etc/nix && cp nix/nix.conf /etc/nix/nix.conf - nix-shell --attr ci --run "refresh_index" -# - name: multiarch-docker -# image: nixpkgs/nix:nixos-22.05 -# environment: -# HOME: "/root" -# secrets: -# - docker_auth -# commands: -# - mkdir -p /root/.docker -# - echo $DOCKER_AUTH > /root/.docker/config.json -# - sha512sum /root/.docker/config.json -# - export CONTAINER_TAG=${CI_COMMIT_TAG:-$CI_COMMIT_SHA} -# - nix-shell --attr ci --run "multiarch_docker" + - name: multiarch-docker + image: nixpkgs/nix:nixos-22.05 + secrets: + - docker_auth + commands: + - mkdir -p /root/.docker + - echo $DOCKER_AUTH > /root/.docker/config.json + - export CONTAINER_TAG=${CI_COMMIT_TAG:-$CI_COMMIT_SHA} + - nix-shell --attr ci --run "multiarch_docker" -- cgit v1.2.3