chore(gitlab-ci): ...
This commit is contained in:
parent
72143a95f1
commit
6950b533f4
@ -21,7 +21,7 @@ node dependencies:
|
|||||||
script:
|
script:
|
||||||
- nix -L build -o node-dependencies .#uniworxNodeDependencies
|
- nix -L build -o node-dependencies .#uniworxNodeDependencies
|
||||||
- nix-store --export $(nix-store -qR node-dependencies) > node-dependencies.nar
|
- nix-store --export $(nix-store -qR node-dependencies) > node-dependencies.nar
|
||||||
before_script:
|
before_script: &nix
|
||||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
||||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
- nix-env -f '<nixpkgs>' -riA envsubst
|
||||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
||||||
@ -44,15 +44,7 @@ well known:
|
|||||||
- nix-store --import <node-dependencies.nar
|
- nix-store --import <node-dependencies.nar
|
||||||
- nix -L build -o well-known .#uniworxWellKnown
|
- nix -L build -o well-known .#uniworxWellKnown
|
||||||
- nix-store --export $(nix-store -qR well-known) > well-known.nar
|
- nix-store --export $(nix-store -qR well-known) > well-known.nar
|
||||||
before_script:
|
before_script: *nix
|
||||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
|
||||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
|
||||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
|
||||||
- git config --global init.defaultBranch master
|
|
||||||
- install -v -m 0700 -d ~/.ssh
|
|
||||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
|
||||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
|
||||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
|
||||||
needs:
|
needs:
|
||||||
- job: node dependencies
|
- job: node dependencies
|
||||||
artifacts: true
|
artifacts: true
|
||||||
@ -71,19 +63,11 @@ frontend:
|
|||||||
- nix-store --import <well-known.nar
|
- nix-store --import <well-known.nar
|
||||||
- nix -L build -o frontend .#uniworxFrontend
|
- nix -L build -o frontend .#uniworxFrontend
|
||||||
- nix-store --export $(nix-store -qR frontend) > frontend.nar
|
- nix-store --export $(nix-store -qR frontend) > frontend.nar
|
||||||
before_script:
|
before_script: *nix
|
||||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
|
||||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
|
||||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
|
||||||
- git config --global init.defaultBranch master
|
|
||||||
- install -v -m 0700 -d ~/.ssh
|
|
||||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
|
||||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
|
||||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
|
||||||
needs:
|
needs:
|
||||||
- job: node dependencies
|
- job: node dependencies
|
||||||
artifacts: true
|
artifacts: true
|
||||||
- job: well-known
|
- job: well known
|
||||||
artifacts: true
|
artifacts: true
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
@ -99,15 +83,7 @@ backend:
|
|||||||
- nix-store --import <frontend.nar
|
- nix-store --import <frontend.nar
|
||||||
- nix -L build -o backend .#uniworxBackend
|
- nix -L build -o backend .#uniworxBackend
|
||||||
- cp -pr --reflink=auto result/bin .
|
- cp -pr --reflink=auto result/bin .
|
||||||
before_script:
|
before_script: *nix
|
||||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
|
||||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
|
||||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
|
||||||
- git config --global init.defaultBranch master
|
|
||||||
- install -v -m 0700 -d ~/.ssh
|
|
||||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
|
||||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
|
||||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
|
||||||
needs:
|
needs:
|
||||||
- job: frontend
|
- job: frontend
|
||||||
artifacts: true
|
artifacts: true
|
||||||
@ -125,15 +101,7 @@ demo docker:
|
|||||||
- nix-store --import <backend.nar
|
- nix-store --import <backend.nar
|
||||||
- nix -L build -o backend .#uniworxDemoDocker
|
- nix -L build -o backend .#uniworxDemoDocker
|
||||||
- cp -pr --reflink=auto -L result uniworx-demo.tar.gz
|
- cp -pr --reflink=auto -L result uniworx-demo.tar.gz
|
||||||
before_script:
|
before_script: *nix
|
||||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
|
||||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
|
||||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
|
||||||
- git config --global init.defaultBranch master
|
|
||||||
- install -v -m 0700 -d ~/.ssh
|
|
||||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
|
||||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
|
||||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
|
||||||
needs:
|
needs:
|
||||||
- job: backend
|
- job: backend
|
||||||
artifacts: true
|
artifacts: true
|
||||||
@ -151,15 +119,7 @@ docker:
|
|||||||
- nix-store --import <backend.nar
|
- nix-store --import <backend.nar
|
||||||
- nix -L build -o backend .#uniworxDocker
|
- nix -L build -o backend .#uniworxDocker
|
||||||
- cp -pr --reflink=auto -L result uniworx.tar.gz
|
- cp -pr --reflink=auto -L result uniworx.tar.gz
|
||||||
before_script:
|
before_script: *nix
|
||||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
|
||||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
|
||||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
|
||||||
- git config --global init.defaultBranch master
|
|
||||||
- install -v -m 0700 -d ~/.ssh
|
|
||||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
|
||||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
|
||||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
|
||||||
needs:
|
needs:
|
||||||
- job: backend
|
- job: backend
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
|||||||
Reference in New Issue
Block a user