Skip to content

Commit

Permalink
updated workfows to feature image publishing to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
Radoslav Radev committed Mar 8, 2024
1 parent 4f3017e commit 9f58cc6
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Test N buil Account
name: Account Build Test N Publish

on:
push:
Expand Down Expand Up @@ -26,3 +26,18 @@ jobs:
run: dotnet build Backend/Account/Account.csproj --no-restore
- name: Test
run: dotnet test Backend/Account/Account.csproj --no-build --verbosity normal

- name: Log in to DockerHub
uses: docker/login-action@v1
if: success()
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
if: success()
with:
context: .
file: Backend/Account/Dockerfile
push: true
tags: openvidstreamer/account:latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Test N Build RecommendationAlgo
name: RecommendationAlgo Build Test N Publish

on:
push:
Expand Down Expand Up @@ -26,3 +26,18 @@ jobs:
run: dotnet build Backend/RecommendationAlgo/RecommendationAlgo.csproj --no-restore
- name: Test
run: dotnet test Backend/RecommendationAlgo/RecommendationAlgo.csproj --no-build --verbosity normal

- name: Log in to DockerHub
uses: docker/login-action@v1
if: success()
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
if: success()
with:
context: .
file: Backend/RecommendationAlgo/Dockerfile
push: true
tags: openvidstreamer/recommendationalgo:latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Build N Test Render
name: Render Build Test N Publish

on:
push:
Expand Down Expand Up @@ -26,3 +26,19 @@ jobs:
run: dotnet build Backend/Render/Render.csproj --no-restore
- name: Test
run: dotnet test Backend/Render/Render.csproj --no-build --verbosity normal

- name: Log in to DockerHub
uses: docker/login-action@v1
if: success()
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
if: success()
with:
context: .
file: Backend/Render/Dockerfile
push: true
tags: openvidstreamer/render:latest

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Build N Test Upload
name: Upload Build Test N Publish

on:
push:
Expand Down Expand Up @@ -26,3 +26,18 @@ jobs:
run: dotnet build Backend/Upload/Upload.csproj --no-restore
- name: Test
run: dotnet test Backend/Upload/Upload.csproj --no-build --verbosity normal

- name: Log in to DockerHub
uses: docker/login-action@v1
if: success()
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
if: success()
with:
context: .
file: Backend/Upload/Dockerfile
push: true
tags: openvidstreamer/upload:latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET Build N Test videoLibrarry
name: VideoLibrarry Build Test N Publish

on:
push:
Expand Down Expand Up @@ -26,3 +26,18 @@ jobs:
run: dotnet build Backend/VideoLibrary/VideoLibrary.csproj --no-restore
- name: Test
run: dotnet test Backend/VideoLibrary/VideoLibrary.csproj --no-build --verbosity normal

- name: Log in to DockerHub
uses: docker/login-action@v1
if: success()
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
if: success()
with:
context: .
file: Backend/VideoLibrary/Dockerfile
push: true
tags: openvidstreamer/videolibrary:latest
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,18 @@ jobs:
run: dotnet build Backend/VideoStreamer/VideoStreamer.csproj --no-restore
- name: Test
run: dotnet test Backend/VideoStreamer/VideoStreamer.csproj --no-build --verbosity normal

- name: Log in to DockerHub
uses: docker/login-action@v1
if: success()
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
if: success()
with:
context: .
file: Backend/VideoStreamer/Dockerfile
push: true
tags: openvidstreamer/videostreamer:latest
4 changes: 2 additions & 2 deletions Backend/Databases/Account/accountDB-service.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: videolib-db-service
name: account-db-service
spec:
selector:
app: videolib-db
app: account-db
ports:
- port: 3306
targetPort: 3306

0 comments on commit 9f58cc6

Please sign in to comment.