post(rsync-nixos): specify artifact between jobs

This commit is contained in:
Ming Di Leom 2021-03-15 22:51:56 +00:00
parent 62bad2d134
commit 0c569662a1
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,7 @@ Generate a new SSH key. If you're planning to use rsync on CI/CD pipeline, leave
ssh-keygen -t ed25519 -C "www-data@nixos-server"
```
Create a separate user with home folder set to where web server will be deployed. I use the convention of `www-data` user with `/var/www` home folder. Create
Create a separate user with home folder set to where web server will be deployed. I use the convention of `www-data` user with `/var/www` home folder. Create
``` nix /etc/nixos/configuration.nix
users = {
@ -134,6 +134,10 @@ build:
script:
- npm run build
artifacts:
paths:
- public/
deploy:
stage: deploy