mirror of https://gitlab.com/curben/blog
post(rsync-nixos): specify artifact between jobs
This commit is contained in:
parent
62bad2d134
commit
0c569662a1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue