feature: configuração de frete #11
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: Docker Image CI | |
on: | |
push: | |
branches: [ "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install dependencies | |
run: dotnet restore ./OpenAdm.Api | |
- name: Build | |
run: dotnet build ./OpenAdm.Api --configuration Release | |
- name: Test | |
run: dotnet test ./OpenAdm.Test | |
- name: Build-Image-Docker | |
run: docker build ./ -t brunobentocaina/open-adm-api:stating | |
- name: Push | |
run: | | |
docker login -u brunobentocaina -p ${{ secrets.DOCKER_HUB_KEY }} | |
docker push brunobentocaina/open-adm-api:stating |