update ci script for people without docker

This commit is contained in:
13xforever
2022-06-20 18:00:39 +05:00
parent 079dcbcc5c
commit 578343e913
2 changed files with 14 additions and 3 deletions

View File

@@ -27,11 +27,22 @@ jobs:
- name: dotnet test
run: dotnet test --no-build --verbosity normal Tests/Tests.csproj
ConfigTest:
runs-on: ubuntu-latest
outputs:
docker-username: ${{ steps.docker-username.outputs.defined }}
steps:
- id: docker-username
env:
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
if: "${{ env.DOCKER_USERNAME }}"
run: echo "::set-output name=defined::true"
DockerImage:
needs: BuildAndTest
needs: [BuildAndTest, ConfigTest]
runs-on: ubuntu-latest
name: "Build Docker image"
if: github.ref == 'refs/heads/master'
if: (github.ref == 'refs/heads/master') && (needs.ConfigTest.outputs.docker-username == 'true')
steps:
- uses: actions/checkout@v3
with: