-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from Ferlab-Ste-Justine/feat/issam-dev
feat: CLIN-3559 Added some gh actions
- Loading branch information
Showing
3 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Commit Lint Check | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Commit Lint Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
- name: Lint Commits | ||
uses: Ferlab-Ste-Justine/action-commit-lint@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Publish Image Using Commit Hash | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish_qa: | ||
name: Publish QA Image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Push the image on the docker registry | ||
uses: Ferlab-Ste-Justine/action-push-image@v2 | ||
with: | ||
username: ${{ secrets.FERLAB_DOCKER_HUB_USER }} | ||
password: ${{ secrets.FERLAB_DOCKER_HUB_TOKEN }} | ||
image: ferlabcrsj/clin-docs | ||
tag_format: "qa-{sha}-{timestamp}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
FROM node:latest | ||
# Utilisation d'une image Node.js stable (éviter "latest" en production) | ||
FROM node:18-alpine | ||
LABEL description="QLIN Documentation." | ||
|
||
WORKDIR /docs | ||
|
||
RUN npm install -g docsify-cli@latest | ||
EXPOSE 3000/tcp | ||
ENTRYPOINT docsify serve . | ||
|
||
COPY ./docs /docs | ||
|
||
EXPOSE 3000 | ||
|
||
ENTRYPOINT ["docsify", "serve", "."] |