-
Notifications
You must be signed in to change notification settings - Fork 1
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 #87 from InseeFr/develop
Develop
- Loading branch information
Showing
141 changed files
with
10,522 additions
and
343 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,8 @@ | ||
VITE_API_ENDPOINT=http://localhost:8000 | ||
VITE_AUTH_TYPE=anonymous | ||
VITE_OIDC_CLIENT_ID= | ||
VITE_OIDC_ISSUER=https://localhost:8000 | ||
VITE_IDENTITY_PROVIDER= | ||
VITE_ADMIN_LDAP_ROLE=admin | ||
VITE_USER_LDAP_ROLE=user | ||
VITE_APP_URL=http://localhost:5173 |
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 @@ | ||
src/types/api.ts |
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
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,104 @@ | ||
name: Develop Branch CI - Build release candidate | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
check-version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release-version: ${{ steps.version.outputs.pe-version }} | ||
tag-already-exists: ${{ steps.checkTag.outputs.exists }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get version | ||
id: version | ||
run: echo "pe-version=$(cat package.json | jq -r '.version')-rc" >> $GITHUB_OUTPUT | ||
|
||
- name: Print version | ||
run: echo ${{ steps.version.outputs.pe-version }} | ||
|
||
- uses: mukunku/[email protected] | ||
id: checkTag | ||
with: | ||
tag: ${{ steps.version.outputs.pe-version }} | ||
|
||
- if: ${{ steps.checkTag.outputs.exists == 'true' }} | ||
name: "Skip release" | ||
run: echo "Nothing to tag/release, the release ${{ steps.version.outputs.pe-version }} already exists" | ||
|
||
create-release: | ||
needs: check-version | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.check-version.outputs.tag-already-exists == 'false' }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Get previous tag | ||
id: previousTag | ||
run: echo "previousTag=$(git --no-pager tag --sort=creatordate --merged ${{ github.ref_name }} | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+\-rc$' | tail -1)" >> $GITHUB_OUTPUT | ||
|
||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ needs.check-version.outputs.release-version }} | ||
target_commitish: ${{ github.head_ref || github.ref }} | ||
name: ${{ needs.check-version.outputs.release-version }} | ||
body: ${{steps.changelog.outputs.changes}} | ||
prerelease: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-release: | ||
needs: create-release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT | ||
id: extract_branch | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ steps.extract_branch.outputs.branch }} | ||
|
||
- name: Use Node.js 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: yarn | ||
- run: yarn build | ||
|
||
- name: Upload build | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: build | ||
path: dist | ||
docker: | ||
needs: | ||
- check-version | ||
- build-release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download build | ||
id: download | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: build | ||
path: dist | ||
|
||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: inseefr/platine-management | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
tags: "latest, ${{ needs.check-version.outputs.release-version }}" |
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
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
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
/dist/ | ||
/.eslintrc.js | ||
/docs/ | ||
/CHANGELOG.md | ||
/CHANGELOG.md | ||
/src/types/api.ts |
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
File renamed without changes.
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
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
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
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,8 +1,8 @@ | ||
{ | ||
"realm": "my-realm", | ||
"auth-server-url": "https://my-nice-server.test/auth", | ||
"realm": "questionnaire-particuliers", | ||
"auth-server-url": "https://auth.insee.test/auth", | ||
"ssl-required": "none", | ||
"resource": "my-client", | ||
"resource": "coleman-pilotage", | ||
"public-client": true, | ||
"confidential-port": 0 | ||
} |
Oops, something went wrong.