Fix explicit connection string on DbContex to apply Database Migratio… #41
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: Container publish | |
on: | |
push: | |
branches: [ master ] | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
name: Build | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
push_to_registry: | |
needs: [build] | |
name: DockerHub Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Push to Docker Hub | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: vanderlangs/orion-api | |
tag_with_ref: true |