允许使用项目的Dockerfile
This commit is contained in:
parent
8d600bde36
commit
26bee38ca5
@ -1,6 +1,11 @@
|
|||||||
# action.yml
|
# action.yml
|
||||||
name: 'build docker image and push to code'
|
name: 'build docker image and push to code'
|
||||||
description: 'build docker image and push to simcu 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:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
@ -10,6 +15,7 @@ runs:
|
|||||||
args: dotnet publish -r linux-x64 -c Release --self-contained -o dist -p:AssemblyName=App
|
args: dotnet publish -r linux-x64 -c Release --self-contained -o dist -p:AssemblyName=App
|
||||||
|
|
||||||
- name: create dockerfile
|
- name: create dockerfile
|
||||||
|
if: ${{ inputs.haveDockerfile }} != 'true'
|
||||||
uses: docker://ubuntu:latest
|
uses: docker://ubuntu:latest
|
||||||
with:
|
with:
|
||||||
entrypoint: "/bin/bash"
|
entrypoint: "/bin/bash"
|
||||||
|
Loading…
Reference in New Issue
Block a user