woodpecker-plugin-nix-attic/.woodpecker/release.yaml
Gabor Pihaj 36d3e46145
build: don't publish latest tag from main (#16)
Reviewed-on: https://git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic/pulls/16
Co-authored-by: Gabor Pihaj <gabor.pihaj@gmail.com>
Co-committed-by: Gabor Pihaj <gabor.pihaj@gmail.com>
2023-11-30 21:19:48 +00:00

22 lines
784 B
YAML

when:
- event: tag
steps:
release:
image: git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic
settings:
binary_cache: https://cache.nix.vdx.hu/private
binary_cache_public_key: private:b6wO7rXF+4WtPCocEKlbdU/bTqEdJAqRrzOu0O3cK68=
binary_cache_token:
from_secret: attic_token
# "persist" the generated image in the workspace
script: |
nix build .#woodpecker-plugin-nix-attic-release
nix-env -iA nixpkgs.docker-client
docker load -i result
docker login -u vdx -p "$FORGEJO_REGISTRY_TOKEN" git.vdx.hu
docker push git.vdx.hu/voidcontext/woodpecker-plugin-nix-attic:$CI_COMMIT_TAG
secrets:
- forgejo_registry_token
volumes:
- /var/run/docker.sock:/var/run/docker.sock