This commit is contained in:
xRain 2024-04-18 02:14:27 +08:00
parent 26bee38ca5
commit db4d55118d

View File

@ -2,10 +2,10 @@
name: 'build docker image and push to code'
description: 'build docker image and push to simcu code'
inputs:
haveDockerfile:
description: 'If a Dockerfile is already present, skip creation'
dockerfile:
description: 'if set, will use this to build'
required: false
default: 'false'
default: ''
runs:
using: 'composite'
steps:
@ -15,7 +15,7 @@ runs:
args: dotnet publish -r linux-x64 -c Release --self-contained -o dist -p:AssemblyName=App
- name: create dockerfile
if: ${{ inputs.haveDockerfile }} != 'true'
if: ${{ inputs.default }} == ''
uses: docker://ubuntu:latest
with:
entrypoint: "/bin/bash"