Skip to content

Commit

Permalink
Add docs how to configure GitLab
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Sep 16, 2024
1 parent 8b84116 commit faf3313
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ build:
image: ghcr.io/flox/flox:latest
script:
- flox activate -- mkdocs build
artifacts:
name: floxdocs
paths:
- site/
17 changes: 16 additions & 1 deletion docs/tutorials/ci-cd.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,19 @@ jobs:
1. The `install` command will install the latest Flox version. You can change
the `channel` and `version` option which allows you to select excatly which
version of Flox to install.
2. The `activate` command runs a command in the context of a Flox environment.
2. The `activate` command runs a command in the context of a Flox environment.


## GitLab


```yaml title=".gitlab-ci.yml"
build:
stage: build
image: ghcr.io/flox/flox:latest # (1)!
script:
- flox activate -- npm run build # (2)!
```

1. Use `ghcr.io/flox/flox` that already comes with Flox.
2. Run command in a Flox environment.

0 comments on commit faf3313

Please sign in to comment.