From f4ae16ee7c265d923eb60abf3c8baaaf335fd397 Mon Sep 17 00:00:00 2001 From: Patrick Cleavelin Date: Sat, 29 Jul 2023 17:43:25 -0500 Subject: [PATCH] just use docker instead of artifact --- .woodpecker.yml | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index caa9a06..4210284 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,23 +5,36 @@ steps: # - apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing # - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#default - # build-docker-image: - # image: alpine:edge - # commands: - # - apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing - # - echo "system-features = nixos-test benchmark big-parallel uid-range kvm" > /etc/nix/nix.conf - # - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#docker + build-docker-image: + image: alpine:edge + commands: + - apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing + - echo "system-features = nixos-test benchmark big-parallel uid-range kvm" > /etc/nix/nix.conf + - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#docker publish-image: when: event: tag - image: git.spacegirl.nl/patrick/plugin-artifact:v0.1.1 - settings: - tag: $CI_COMMIT_TAG - user: patrick - password: - from_secret: forgejo_token - repo: $CI_REPO - image_tar: result + image: docker + secrets: [ forgejo_token ] + commands: + - docker login -u ${CI_REPO_OWNER} --password $FORGEJO_TOKEN git.spacegirl.nl + - docker image load --input result + - docker image tag memejoin-rs git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG} + - docker image push git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG} volumes: - /var/run/docker.sock:/var/run/docker.sock + + # publish-image: + # when: + # event: tag + # image: git.spacegirl.nl/patrick/plugin-artifact:v0.1.1 + # settings: + # tag: $CI_COMMIT_TAG + # user: patrick + # password: + # from_secret: forgejo_token + # repo: $CI_REPO + # image_tar: result + # volumes: + # - /var/run/docker.sock:/var/run/docker.sock