Skip to content

Added NoCache

Added NoCache #7

Workflow file for this run

name: Build and deploy .NET
on:
push:
branches: [ master ]
jobs:
build-api:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0'
- name: Build Docker Image
run: |
docker buildx build -t alenalex/myserve-http-api:master --file MyServe.Backend.Http.Api/Dockerfile MyServe.Backend.Http.Api --no-cache
- name: Docker Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Docker Image
run: |
docker push alenalex/myserve-http-api:master