-
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 #303 from Pixilib/salim
various enhancements, ci activation
- Loading branch information
Showing
47 changed files
with
11,571 additions
and
21,396 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,75 @@ | ||
name: 'publish' | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
- '*' | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: 'Build and publish' | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'yarn' | ||
env: | ||
SKIP_YARN_COREPACK_CHECK: true | ||
|
||
- run: | | ||
corepack enable | ||
- run: | | ||
yarn set version berry | ||
- name: setup git config | ||
run: | | ||
git config user.name "Salim Kanoun" | ||
git config user.email "[email protected]" | ||
- uses: docker/metadata-action@v5 | ||
id: meta | ||
with: | ||
images: ghcr.io/pixilib/gaelo-flow-frontend | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=tag | ||
latest | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to github registery | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: 'salimkanoun' | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- run: yarn install | ||
|
||
- name: 'set version' | ||
if: github.ref_type == 'tag' | ||
run: yarn version --new-version ${{ github.ref_name }} | ||
|
||
- run : yarn build | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
push: true | ||
pull: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
|
||
permissions: | ||
contents: read | ||
packages: write |
Large diffs are not rendered by default.
Oops, something went wrong.
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 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.4.1.cjs |
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,8 @@ | ||
# Nginx | ||
FROM nginx:1.23.3 | ||
|
||
ENV NGINX_SERVER_NAME='nginx' | ||
ENV NGINX_PORT='80' | ||
|
||
COPY default.conf.template /etc/nginx/templates/default.conf.template | ||
COPY ./dist /usr/share/nginx/html |
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 @@ | ||
server { | ||
server_name ${NGINX_SERVER_NAME}; | ||
listen ${NGINX_PORT}; | ||
server_tokens off; | ||
|
||
real_ip_header X-Forwarded-For; | ||
real_ip_recursive on; | ||
set_real_ip_from 0.0.0.0/0; | ||
|
||
root /usr/share/nginx/html; | ||
|
||
add_header X-Content-Type-Options "nosniff" always; | ||
add_header X-XSS-Protection "1; mode=block" always; | ||
|
||
index index.html; | ||
|
||
location / { | ||
try_files $uri /index.html; | ||
} | ||
} |
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
Oops, something went wrong.