just use docker instead of artifact
ci/woodpecker/tag/woodpecker Pipeline failed Details

Patrick Cleavelin 2023-07-29 17:43:25 -05:00
parent e720556744
commit f4ae16ee7c
1 changed files with 27 additions and 14 deletions

View File

@ -5,23 +5,36 @@ steps:
# - apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing # - 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 # - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#default
# build-docker-image: build-docker-image:
# image: alpine:edge image: alpine:edge
# commands: commands:
# - apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing - 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 - 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 - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#docker
publish-image: publish-image:
when: when:
event: tag event: tag
image: git.spacegirl.nl/patrick/plugin-artifact:v0.1.1 image: docker
settings: secrets: [ forgejo_token ]
tag: $CI_COMMIT_TAG commands:
user: patrick - docker login -u ${CI_REPO_OWNER} --password $FORGEJO_TOKEN git.spacegirl.nl
password: - docker image load --input result
from_secret: forgejo_token - docker image tag memejoin-rs git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}
repo: $CI_REPO - docker image push git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}
image_tar: result
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /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