Skip to content

Update README.md

Update README.md #10

Workflow file for this run

name: Build and Push Docker Image to Docker Hub
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
push_to_registry:
name: push docker image to hub
runs-on: ubuntu-latest
steps:
- name: check repository
uses: actions/checkout@v4
- name: login to docker registry
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
- uses: kzrnm/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: Elib2Ebook/Elib2Ebook.csproj
- name: "get-last-release"
id: last_release
uses: InsonusK/[email protected]
with:
myToken: ${{ github.token }}
- name: build and push docker image to registry
if: ${{ steps.last_release.outputs.tag_name != steps.get-version.outputs.version }}
uses: docker/build-push-action@v5
with:
context: "Elib2Ebook"
push: true
tags: onlyfart/elib2ebook:${{steps.get-version.outputs.version}}
- name: build and push docker image to registry
if: ${{ steps.last_release.outputs.tag_name != steps.get-version.outputs.version }}
uses: docker/build-push-action@v5
with:
context: "Elib2Ebook"
push: true
tags: onlyfart/elib2ebook:latest