EzAspDotNet v1.0.59 upgrade #124
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: Publish Backend Docker image | |
on: | |
push: | |
branches: master | |
jobs: | |
push_to_registry: | |
name: Push Backend Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
source-url: https://nuget.pkg.github.com/elky84/index.json | |
dotnet-version: 7.x.x | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.DOCKER_GITHUB_PASSWORD}} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.DOCKER_GITHUB_PASSWORD }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: ./Server/Dockerfile | |
push: true | |
tags: ghcr.io/elky84/web-crawler:latest |