Skip to content

feat: add project

feat: add project #1

Workflow file for this run

name: Build application .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
Build_Newsfeed_API:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to Docker Hub Registry
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Print Docker Username Secret
run: echo ${{ secrets.DOCKER_USERNAME }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
file: NewsfeedAPI/Dockerfile
push: true
tags: hoangphi076/newsfeed-api:a.0.0.1
Build_Platform_API:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to Docker Hub Registry
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Print Docker Username Secret
run: echo ${{ secrets.DOCKER_USERNAME }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: .
file: PlatformAPI/Dockerfile
push: true
tags: hoangphi076/platform-api:a.0.0.1