-
Notifications
You must be signed in to change notification settings - Fork 39
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
Showing
530 changed files
with
32,909 additions
and
21,729 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
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,33 +1,29 @@ | ||
name: Publish API to Production | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**@impler/api@**' | ||
- '**@impler/shared@**' | ||
- '**@impler/dal@**' | ||
workflow_call: | ||
secrets: | ||
GH_PACKAGES: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_prod_api: | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 80 | ||
environment: Production | ||
permissions: | ||
contents: read | ||
packages: write | ||
deployments: write | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup kernel for react native, increase watchers | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.13.0' | ||
node-version: '20.13.1' | ||
|
||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
|
@@ -43,8 +39,10 @@ jobs: | |
${{ runner.os }}- | ||
- uses: pnpm/[email protected] | ||
env: | ||
CI: false | ||
with: | ||
version: 7.9.4 | ||
version: 8.9.0 | ||
run_install: true | ||
|
||
- name: Build, tag, and push image to Github Container Registry | ||
|
@@ -59,12 +57,12 @@ jobs: | |
echo $GH_PASSWORD | docker login ghcr.io -u $GH_ACTOR --password-stdin | ||
docker build -t ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG -f apps/api/Dockerfile . | ||
docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest | ||
docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod | ||
# docker tag ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod | ||
docker run --network=host --name api -dit --env NODE_ENV=test --env JWT_SECRET=impler --env COOKIE_DOMAIN=impler ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG | ||
docker run --network=host appropriate/curl --retry 10 --retry-delay 5 --retry-connrefused http://localhost:3000/v1/health-check | grep 'ok' | ||
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod | ||
# docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod | ||
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest | ||
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG | ||
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG" | ||
# docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG | ||
# echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG" |
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,31 +1,29 @@ | ||
name: Publish Embed to Production | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**@impler/embed@**' | ||
workflow_call: | ||
secrets: | ||
GH_PACKAGES: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_prod_embed: | ||
build_embed: | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 80 | ||
environment: Production | ||
permissions: | ||
contents: read | ||
packages: write | ||
deployments: write | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup kernel for react native, increase watchers | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.13.0' | ||
node-version: '20.13.1' | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
|
@@ -36,8 +34,10 @@ jobs: | |
${{ runner.os }}- | ||
- uses: pnpm/[email protected] | ||
env: | ||
CI: false | ||
with: | ||
version: 7.9.4 | ||
version: 8.9.0 | ||
run_install: true | ||
|
||
- name: Build | ||
|
@@ -61,3 +61,4 @@ jobs: | |
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest | ||
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG | ||
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG" | ||
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,32 +1,29 @@ | ||
name: Publish Queue Manager to Production | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**@impler/queue-manager@**' | ||
- '**@impler/shared@**' | ||
workflow_call: | ||
secrets: | ||
GH_PACKAGES: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_prod_queue-manager: | ||
build_queuemanager: | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 80 | ||
environment: Production | ||
permissions: | ||
contents: read | ||
packages: write | ||
deployments: write | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup kernel for react native, increase watchers | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.13.0' | ||
node-version: '20.13.1' | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
|
@@ -37,10 +34,12 @@ jobs: | |
${{ runner.os }}- | ||
- uses: pnpm/[email protected] | ||
env: | ||
CI: false | ||
with: | ||
version: 7.9.4 | ||
version: 8.9.0 | ||
run_install: true | ||
|
||
- name: Build, tag, and push image to Github Container Registry | ||
id: build-image | ||
env: | ||
|
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,31 +1,29 @@ | ||
name: Publish Web app to Production | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**@impler/web@**' | ||
workflow_call: | ||
secrets: | ||
GH_PACKAGES: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_prod_web: | ||
build_web: | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 80 | ||
environment: Production | ||
permissions: | ||
contents: read | ||
packages: write | ||
deployments: write | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup kernel for react native, increase watchers | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.13.0' | ||
node-version: '20.13.1' | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
|
@@ -36,10 +34,12 @@ jobs: | |
${{ runner.os }}- | ||
- uses: pnpm/[email protected] | ||
env: | ||
CI: false | ||
with: | ||
version: 7.9.4 | ||
version: 8.9.0 | ||
run_install: true | ||
|
||
- name: Build, tag, and push image to Github container registry | ||
id: build-image | ||
env: | ||
|
@@ -56,4 +56,4 @@ jobs: | |
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:prod | ||
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:latest | ||
docker push ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG | ||
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG" | ||
echo "::set-output name=IMAGE::ghcr.io/$REGISTERY_OWNER/$DOCKER_NAME:$IMAGE_TAG" |
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,32 +1,29 @@ | ||
name: Publish Widget to Production | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**@impler/widget@**' | ||
- '**@impler/shared@**' | ||
workflow_call: | ||
secrets: | ||
GH_PACKAGES: | ||
required: true | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish_prod_widget: | ||
build_widget: | ||
if: "!contains(github.event.head_commit.message, 'ci skip')" | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 80 | ||
environment: Production | ||
permissions: | ||
contents: read | ||
packages: write | ||
deployments: write | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup kernel for react native, increase watchers | ||
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18.13.0' | ||
node-version: '20.13.1' | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
|
@@ -37,8 +34,10 @@ jobs: | |
${{ runner.os }}- | ||
- uses: pnpm/[email protected] | ||
env: | ||
CI: false | ||
with: | ||
version: 7.9.4 | ||
version: 8.9.0 | ||
run_install: true | ||
|
||
- name: Envsetup | ||
|
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,25 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- next | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- uses: sonarsource/sonarqube-scan-action@master | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} | ||
# If you wish to fail your job when the Quality Gate is red, uncomment the | ||
# following lines. This would typically be used to fail a deployment. | ||
# - uses: sonarsource/sonarqube-quality-gate-action@master | ||
# timeout-minutes: 5 | ||
# env: | ||
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
Oops, something went wrong.