Merge pull request #204 from palladiumkenya/feat/fastSendingWithConcu… #10
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
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 src/Dwapi/Dwapi.csproj --configuration Release | |
- name: Change to root folder proj file | |
run: cd .\src\Dwapi | |
- 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.DOCKERUSERNAME }} | |
password: ${{ secrets.DOCKERPASSWORD }} | |
- name: Push Docker image | |
run: docker push kenyahmis/dwapi:qa |