summary refs log tree commit diff
path: root/.gitlab-ci.yml
blob: c680d0b7082e64cb0a78aa11e6c29f1b8dd98759 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
stages:
  - nix
nix:
  image: docker:stable
  stage: nix
  script:
  - apk add curl git
  - curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux --extra-conf "sandbox = false" --init none --no-confirm
  - export PATH="${PATH}:/nix/var/nix/profiles/default/bin"
  - nix flake check
  - nix build .#dockerImage
  - ./result | docker load
  - docker tag vavbot $CI_REGISTRY_IMAGE
  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD  $CI_REGISTRY
  - docker push $CI_REGISTRY_IMAGE