Compare commits

...

3 Commits

Author SHA1 Message Date
Patrick Cleavelin fb82c6d9b0 save result of nix build in persistent volume
ci/woodpecker/tag/woodpecker Pipeline failed Details
2023-07-30 13:45:20 -05:00
Patrick Cleavelin f4ae16ee7c just use docker instead of artifact
ci/woodpecker/tag/woodpecker Pipeline failed Details
2023-07-30 12:46:48 -05:00
Patrick Cleavelin e720556744 use correct tag
ci/woodpecker/tag/woodpecker Pipeline failed Details
2023-07-29 17:32:55 -05:00
2 changed files with 25 additions and 9 deletions

View File

@ -11,15 +11,31 @@ 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
- 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
- cp $(nix build --extra-experimental-features nix-command --extra-experimental-features flakes --print-out-paths .#docker) ./memejoin-rs.tar.gz
publish-image: publish-image:
when: when:
event: tag event: tag
image: git.spacegirl.nl/patrick/plugin-artifact 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 memejoin-rs.tar.gz
from_secret: forgejo_token - docker image tag memejoin-rs:${CI_COMMIT_TAG} 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:
- /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

View File

@ -46,7 +46,7 @@
packages = with pkgs; flake-utils.lib.flattenTree rec { packages = with pkgs; flake-utils.lib.flattenTree rec {
default = rustPlatform.buildRustPackage rec { default = rustPlatform.buildRustPackage rec {
name = "memejoin-rs"; name = "memejoin-rs";
version = "0.1.4_2-alpha"; version = "super_test";
src = self; src = self;
buildInputs = [ openssl.dev ]; buildInputs = [ openssl.dev ];
nativeBuildInputs = [ local-rust pkg-config openssl openssl.dev cmake gcc libopus ]; nativeBuildInputs = [ local-rust pkg-config openssl openssl.dev cmake gcc libopus ];