Skip to content

Commit

Permalink
Merge pull request #21 from Ferlab-Ste-Justine/feat/issam-dev
Browse files Browse the repository at this point in the history
feat: CLIN-3559 Added some gh actions
  • Loading branch information
ihannache authored Dec 6, 2024
2 parents 50277aa + deadd87 commit 91f601c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/commit_lint.yml
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
20 changes: 20 additions & 0 deletions .github/workflows/publish_image_sha.yml
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}"
13 changes: 10 additions & 3 deletions Dockerfile
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", "."]

0 comments on commit 91f601c

Please sign in to comment.