-
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.
- Loading branch information
0 parents
commit 4d382c8
Showing
92 changed files
with
23,160 additions
and
0 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,17 @@ | ||
/*.iml | ||
/.idea | ||
/.tmp | ||
/.dev | ||
/.iconfont | ||
/__\[gruntbuild\] | ||
/__\[viftf\] | ||
/_assets | ||
app/resources/bower_components | ||
/bower_components | ||
/nbproject | ||
/node_modules | ||
/npm-debug.log | ||
.DS_Store | ||
/typings | ||
yarn-error.log | ||
settings.json |
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,5 @@ | ||
PORT=9000 | ||
API_URL_FOR_LOCAL_DEVELOPMENT=example.com | ||
CSRF_WHITELIST_HEADER_FOR_LOCAL_DEVELOPMENT=X-WHITELIST-HEADER | ||
#AUDIO_FILE_INCOMING_CALL=/assets/audio/incomingCall.mp3 | ||
#AUDIO_FILE_INCOMING_NOTIFICATION=/assets/audio/incomingNotification.mp3 |
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,61 @@ | ||
name: FE build action | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- 'dockerImage.v.*' | ||
|
||
jobs: | ||
build: | ||
name: Build & Release | ||
if: "!contains(github.event.head_commit.author, '[email protected]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: set env | ||
run: echo BRANCH=$(echo -n "${GITHUB_REF#refs/heads/}") >> $GITHUB_ENV | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.18.3 | ||
- run: npm i | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
- name: Run linters | ||
uses: wearerequired/lint-action@v1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
eslint: true | ||
eslint_dir: ./src | ||
eslint_extensions: js,ts,tsx | ||
prettier: true | ||
- name: test and build | ||
run: | | ||
echo "127.0.0.1 localhost" | sudo tee -a /etc/hosts | ||
echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf | ||
npm run test | ||
npm run build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
- name: Bump version | ||
if: startsWith(env.BRANCH,'release') == true | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
npm run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
- name: Push changes | ||
if: startsWith(env.BRANCH,'release') == true | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{env.BRANCH}} | ||
force: true | ||
tags: true | ||
- uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: cypress-videos | ||
path: cypress |
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,89 @@ | ||
name: Publish Docker image | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
tags: | ||
- 'dockerImage.v.*' | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
if: "!contains(github.event.head_commit.author, '[email protected]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: set env | ||
run: echo BRANCH=$(echo -n "${GITHUB_REF#refs/heads/}") >> $GITHUB_ENV | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.18.3 | ||
- run: npm i | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
- name: build | ||
run: npm run build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: buildfiles | ||
path: build/**/* | ||
push_to_registry: | ||
strategy: | ||
matrix: | ||
registry: ['docker.pkg.github.com', 'ghcr.io'] | ||
needs: [build] | ||
name: Push Docker image to GitHub Packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download buildfiles artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: buildfiles | ||
- name: Get current time | ||
id: time | ||
uses: nanzm/[email protected] | ||
with: | ||
timeZone: 2 | ||
format: 'YYYYMMDD[_]HHmmss' | ||
- name: Prepare environment variables | ||
run: | | ||
echo "DOCKER_REGISTRY=$(echo "${{ matrix.registry }}/${{ github.repository }}" | awk '{print tolower($0)}')" >> $GITHUB_ENV | ||
echo "DOCKER_IMAGE=$(echo "${{ github.repository }}" | awk -F / '{print tolower($2)}')" >> $GITHUB_ENV | ||
echo CLEAN_REF=$(echo "${GITHUB_REF_NAME#refs/heads/}") >> $GITHUB_ENV | ||
echo TYPE=$(echo -n "${GITHUB_REF_TYPE}") >> $GITHUB_ENV | ||
echo TIME_STAMP=$(echo -n "${{ steps.time.outputs.time }}") >> $GITHUB_ENV | ||
shell: bash | ||
- name: Set branch_timestamp for image from branch | ||
if: ${{ env.TYPE == 'branch' }} | ||
run: echo DOCKER_IMAGE_TAG=$(echo "${{ env.CLEAN_REF }}_${{ env.TIME_STAMP }}") >> $GITHUB_ENV | ||
shell: bash | ||
- name: Set tag for image from tag | ||
if: ${{ env.TYPE == 'tag' }} | ||
run: echo DOCKER_IMAGE_TAG=$(echo "${{ env.CLEAN_REF }}") >> $GITHUB_ENV | ||
shell: bash | ||
- name: Push to GitHub Packages | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.GH_PACKAGE_RELEASE_USER }} | ||
password: ${{ secrets.GH_PACKAGE_RELEASE_TOKEN }} | ||
registry: ${{ env.DOCKER_REGISTRY }} | ||
repository: ${{ env.DOCKER_IMAGE }} | ||
tags: ${{ env.DOCKER_IMAGE_TAG}} | ||
- name: Hint about the Docker Image Tag if successfull | ||
if: ${{ success() }} | ||
run: | | ||
echo "### Publish Docker image :white_check_mark:" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "- Image name: ${{ env.DOCKER_IMAGE }}" >> $GITHUB_STEP_SUMMARY | ||
echo "- Version: ${{ env.DOCKER_IMAGE_TAG }}" >> $GITHUB_STEP_SUMMARY | ||
- name: Hint about the Docker Image Tag if not successfull | ||
if: ${{ failure() || cancelled() }} | ||
run: | | ||
echo "### Publish Docker image :x:" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "- It seems that something has gone wrong" >> $GITHUB_STEP_SUMMARY |
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,27 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
/cypress/screenshots | ||
/cypress/videos | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.idea | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,2 @@ | ||
@virtualidentityag:registry=https://npm.pkg.github.com/ | ||
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} |
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,12 @@ | ||
*.hbs | ||
Jenkinsfile | ||
.prettierignore | ||
.csslintrc | ||
.lintstagedrc | ||
Dockerfile | ||
devvars.env | ||
node_modules | ||
build | ||
config | ||
/scripts | ||
CHANGELOG.md |
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,3 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. |
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,12 @@ | ||
FROM ghcr.io/onlineberatung/onlineberatung-nginx/onlineberatung-nginx:dockerimage.v.001-main | ||
COPY beratung-hilfe.html /usr/share/nginx/html/ | ||
COPY error.400.html /usr/share/nginx/html/ | ||
COPY error.401.html /usr/share/nginx/html/ | ||
COPY error.404.html /usr/share/nginx/html/ | ||
COPY error.500.html /usr/share/nginx/html/ | ||
COPY robots.txt /usr/share/nginx/html/ | ||
COPY public /usr/share/nginx/html/ | ||
COPY src /usr/share/nginx/html/src | ||
COPY static /usr/share/nginx/html/static | ||
COPY under-construction.html /usr/share/nginx/html/ | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf |
Oops, something went wrong.