nsarrazin HF staff commited on
Commit
06db4b1
1 Parent(s): dd4c436

Add a CI check for dockerfile build (#557)

Browse files

* Simplify dockerfile

* Add build check step to lint-and-test workflow

* Revert "Simplify dockerfile"

This reverts commit a88f2bcc553ee0d9e2165a56c67a194357f63979.

* simplify build check

* add minimal dotenv to CI step

* fix ci step

.github/workflows/lint-and-test.yml CHANGED
@@ -47,3 +47,10 @@ jobs:
47
  - name: "Tests"
48
  run: |
49
  npm run test
 
 
 
 
 
 
 
 
47
  - name: "Tests"
48
  run: |
49
  npm run test
50
+ build-check:
51
+ runs-on: ubuntu-latest
52
+ timeout-minutes: 10
53
+ steps:
54
+ - uses: actions/checkout@v3
55
+ - name: Build Docker image
56
+ run: docker build --secret id=DOTENV_LOCAL,src=conf/.env.ci -t chat-ui:latest .
.gitignore CHANGED
@@ -11,3 +11,4 @@ vite.config.js.timestamp-*
11
  vite.config.ts.timestamp-*
12
  SECRET_CONFIG
13
  .idea
 
 
11
  vite.config.ts.timestamp-*
12
  SECRET_CONFIG
13
  .idea
14
+ !conf/.env.ci
conf/.env.ci ADDED
@@ -0,0 +1 @@
 
 
1
+ MONGODB_URL=mongodb://localhost:27017/