-
Notifications
You must be signed in to change notification settings - Fork 1
Fix/ue design #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/ue design #23
Changes from 13 commits
7d0b150
200bfdd
84af05f
43034bf
44d9e5a
9ed3407
f0b49f8
73cf1b8
1f6998a
2f0f97b
a5011f5
0f06ac8
c236f06
f83b06b
6aae413
6b1b9a2
b00834e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| name: CI | ||
| on: | ||
| push: | ||
| branches: [master, dev] | ||
| pull_request: | ||
| branches: [master, dev] | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: self-hosted | ||
| strategy: | ||
| matrix: | ||
| node-version: [18] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 9 | ||
| - name: Use Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'pnpm' | ||
| - run: pnpm install --frozen-lockfile | ||
| - run: pnpm lint | ||
|
|
||
| deploy-dev: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
| if: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/dev') }} | ||
| runs-on: self-hosted | ||
| needs: | ||
| - lint | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install docker | ||
| uses: docker/setup-buildx-action@v3 | ||
| - name: Login to registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ${{ secrets.REGISTRY_URL }} | ||
| username: ${{ secrets.REGISTRY_USERNAME }} | ||
| password: ${{ secrets.REGISTRY_TOKEN }} | ||
| - run: cp .env.dist .env.prod | ||
| - name: Build and push | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| push: true | ||
| build-args: | | ||
| NODE_ENV=production | ||
| NEXT_PUBLIC_API_URL=https://etu.dev.uttnetgroup.fr/api | ||
| NEXT_PUBLIC_CAS_SERVICE_URL=https://etu.utt.fr/login | ||
| NEXT_PUBLIC_API_VERSION=v1 | ||
| NEXT_PUBLIC_API_REQUEST_TIMEOUT=5000 | ||
| tags: | | ||
| ${{ secrets.REGISTRY_URL }}/etuutt/front:dev | ||
|
|
||
| deploy-prod: | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| if: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/master') }} | ||
| runs-on: self-hosted | ||
| needs: | ||
| - lint | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install docker | ||
| uses: docker/setup-buildx-action@v3 | ||
| - name: Login to registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ${{ secrets.REGISTRY_URL }} | ||
| username: ${{ secrets.REGISTRY_USERNAME }} | ||
| password: ${{ secrets.REGISTRY_TOKEN }} | ||
| - run: cp .env.dist .env.prod | ||
| - name: Build and push | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| push: true | ||
| build-args: | | ||
| NODE_ENV=production | ||
| NEXT_PUBLIC_API_URL=https://etu.utt.fr/api | ||
| NEXT_PUBLIC_CAS_SERVICE_URL=https://etu.utt.fr/login | ||
| NEXT_PUBLIC_API_VERSION=v1 | ||
| NEXT_PUBLIC_API_REQUEST_TIMEOUT=5000 | ||
| tags: | | ||
| ${{ secrets.REGISTRY_URL }}/etuutt/front:prod | ||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
|
||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| .next/ | ||
| .vscode/ | ||
| node_modules/ | ||
|
|
||
| next-env.d.ts | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.