Skip to content

fix libsoccial img host #48

fix libsoccial img host

fix libsoccial img host #48

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: Core/Core.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@v6
with:
file: "Elib2EbookCli/Dockerfile"
push: true
tags: onlyfart/elib2ebookcli:${{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@v6
with:
file: "Elib2EbookCli/Dockerfile"
push: true
tags: onlyfart/elib2ebookcli:latest
- 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@v6
with:
file: "Elib2EbookWeb/Dockerfile"
push: true
tags: onlyfart/elib2ebookweb:${{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@v6
with:
file: "Elib2EbookWeb/Dockerfile"
push: true
tags: onlyfart/elib2ebookweb:latest