Skip to content

Commit

Permalink
Update gitlab.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Feb 18, 2024
1 parent 820b441 commit 6231348
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/continuous-integration-setup/gitlab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ GitLab CI

.. code:: yaml
image: nixos/nix:2.3.12
image: docker.nix-community.org/nixpkgs/cachix-flakes
build:
variables:
CACHIX_CACHE_NAME: mycache
before_script:
- nix-env --install --attr nixpkgs.cachix
- cachix use "$CACHIX_CACHE_NAME"
script:
- cachix watch-exec $CACHIX_CACHE_NAME -- nix-build default.nix
3. Follow `variables configuration tutorial <https://docs.gitlab.com/ee/ci/variables/#creating-a-custom-environment-variable>`_
to export ``$CACHIX_AUTH_TOKEN``.
to export ``$CACHIX_AUTH_TOKEN``.

0 comments on commit 6231348

Please sign in to comment.