允许使用项目的Dockerfile

This commit is contained in:
xRain 2024-04-16 16:18:24 +08:00
parent 8d600bde36
commit 26bee38ca5

View File

@ -1,6 +1,11 @@
# action.yml
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'
required: false
default: 'false'
runs:
using: 'composite'
steps:
@ -10,6 +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'
uses: docker://ubuntu:latest
with:
entrypoint: "/bin/bash"