Skip to content

Commit

Permalink
Use entrypoint to run to allow arguments to be passed from the outside
Browse files Browse the repository at this point in the history
  • Loading branch information
danielctull committed Nov 6, 2023
1 parent 87084ec commit fd0424f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM swift:5.9
WORKDIR /package
COPY . ./
RUN swift package fetch --enable-prefetching
CMD swift run
ENTRYPOINT swift
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: 'Hello World'
description: 'Run swift command.'
inputs:
swift-subcommand:
description: 'Swift subcommand to run'
required: true
default: '--version'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.swift-subcommand }}

0 comments on commit fd0424f

Please sign in to comment.