-
Notifications
You must be signed in to change notification settings - Fork 20
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
1 parent
ba79464
commit 769343b
Showing
1 changed file
with
42 additions
and
0 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
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 |