-
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 #1 from StartUpNationLabs/fix-ci
Fix ci
- Loading branch information
Showing
44 changed files
with
1,244 additions
and
71 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI-backend | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- fix-ci | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: downcase REPO name as output | ||
id: downcase | ||
run: | | ||
echo "::set-output name=downcase::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" | ||
- name: Build and push api image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
context: cloud/backend | ||
file: cloud/backend/alert-management/src/main/docker/Dockerfile.multistage | ||
tags: ghcr.io/${{ steps.downcase.outputs.downcase }}/alert-management:${{ github.sha }}, ghcr.io/${{ steps.downcase.outputs.downcase }}/alert-management:${{ github.ref_name }} | ||
|
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,45 @@ | ||
name: Docker Build and Push Gateway Images | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- fix-ci | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
build-push-gateway: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
application: [adapter, dataManager, AlerteDetector] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: downcase REPO name as output | ||
id: downcase | ||
run: | | ||
echo "::set-output name=downcase::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" | ||
- name: downcase APPLICATION name as output | ||
id: downcase-application | ||
run: | | ||
echo "::set-output name=downcase::$(echo ${{ matrix.application }} | tr '[:upper:]' '[:lower:]')" | ||
- name: Build and push api image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
context: gateway/${{ matrix.application }} | ||
tags: ghcr.io/${{ steps.downcase.outputs.downcase }}/gateway-${{ steps.downcase-application.outputs.downcase }}:${{ github.sha }}, ghcr.io/${{ steps.downcase.outputs.downcase }}/gateway-${{ steps.downcase-application.outputs.downcase }}:${{ github.ref_name }} | ||
|
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,39 @@ | ||
name: CI-backend | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- fix-ci | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: downcase REPO name as output | ||
id: downcase | ||
run: | | ||
echo "::set-output name=downcase::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" | ||
- name: Build and push api image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
context: cloud/backend | ||
file: cloud/backend/patient-management/src/main/docker/Dockerfile.multistage | ||
tags: ghcr.io/${{ steps.downcase.outputs.downcase }}/patient-management:${{ github.sha }}, ghcr.io/${{ steps.downcase.outputs.downcase }}/patient-management:${{ github.ref_name }} | ||
|
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,4 +1,3 @@ | ||
* | ||
!target/*-runner | ||
!target/*-runner.jar | ||
!target/lib/* | ||
|
11 changes: 11 additions & 0 deletions
11
cloud/backend/Service-analyse-haut-niveau/src/main/resources/application.properties
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,4 +1,3 @@ | ||
* | ||
!target/*-runner | ||
!target/*-runner.jar | ||
!target/lib/* | ||
|
30 changes: 30 additions & 0 deletions
30
cloud/backend/alert-management/manifests/base/deployment.yml
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,30 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
io.kompose.service: alert-management | ||
name: alert-management | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: alert-management | ||
template: | ||
metadata: | ||
labels: | ||
io.kompose.service: alert-management | ||
spec: | ||
containers: | ||
- image: ghcr.io/startupnationlabs/poulet/alert-management:e3911b5eaa38b49c29022ad6c7e83d45884a7f32 | ||
name: alert-management | ||
ports: | ||
- containerPort: 8080 | ||
protocol: TCP | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
memory: "128Mi" | ||
limits: | ||
cpu: "500m" | ||
memory: "512Mi" | ||
restartPolicy: Always |
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,24 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress-alert-management | ||
annotations: | ||
kubernetes.io/ingress.class: traefik | ||
cert-manager.io/cluster-issuer: letsencrypt-prod | ||
traefik.ingress.kubernetes.io/router.middlewares: default-redirect-https@kubernetescrd | ||
spec: | ||
rules: | ||
- host: alert-management.al.polytech.apoorva64.com | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: alert-management | ||
port: | ||
number: 8080 | ||
tls: | ||
- hosts: | ||
- alert-management.al.polytech.apoorva64.com | ||
secretName: alert-management.al.polytech.apoorva64-tls |
7 changes: 7 additions & 0 deletions
7
cloud/backend/alert-management/manifests/base/kustomization.yml
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,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
|
||
kind: Kustomization | ||
resources: | ||
- deployment.yml | ||
- ingress.yml | ||
- service.yml |
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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
io.kompose.service: alert-management | ||
name: alert-management | ||
spec: | ||
ports: | ||
- name: "8080" | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
io.kompose.service: alert-management |
Oops, something went wrong.