Skip to content

Merge pull request #115 from Geodan/release_1_8 #285

Merge pull request #115 from Geodan/release_1_8

Merge pull request #115 from Geodan/release_1_8 #285

Workflow file for this run

name: Build server status
on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build with dotnet
working-directory: src
run: dotnet build --configuration Release
publishdocker:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build ./src --file ./src/Dockerfile --tag geodan/pg2b3dm:latest
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish the Docker image
run: docker push geodan/pg2b3dm:latest