use dest-creds
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-26 06:41:50 +01:00
parent b776ffc214
commit ab1789bbb4
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -11,7 +11,7 @@ steps:
- echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg= hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" >> /etc/nix/nix.conf - echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg= hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" >> /etc/nix/nix.conf
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf - echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- nix-env -iA nixpkgs.skopeo - nix-env -iA nixpkgs.skopeo
- $(nix build '.#buildImage') | skopeo copy --creds=gitea-bot:$GITEA_KEY docker://git.chir.rs/darkkirb/nix-containers:buildImage - $(nix build '.#buildImage') | skopeo copy --dest-creds=gitea-bot:$GITEA_KEY docker://git.chir.rs/darkkirb/nix-containers:buildImage
environment: environment:
GITEA_KEY: GITEA_KEY:
from_secret: GITEA_KEY from_secret: GITEA_KEY