Skip to content

Commit

Permalink
Create build-dwapi-dev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaryKilewe authored Apr 9, 2024
1 parent ba79464 commit 769343b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build-dwapi-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: deploy to qa
on:
push:
branches:
- dev # Change this to your main branch name if different
pull_request:
branches:
- dev # Change this to your main branch name if different

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up .NET Core SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.x' # Change this to the .NET Core SDK version you're using

- name: Build the ASP.NET app
run: dotnet build --configuration Release

- name: Build the angular UI
run: npm run build

- name: Publish the ASP.NET app
run: dotnet publish -c Release -o ./publish

- name: Build Docker image
run: docker build -t kenyahmis/dwapi:qa .

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push Docker image
run: docker push kenyahmis/dwapi:qa

0 comments on commit 769343b

Please sign in to comment.