Added many, many more actions.
This commit is contained in:
11
distros/debian/Dockerfile
Normal file
11
distros/debian/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
# Container image that runs your code
|
||||
FROM debian:12.0
|
||||
|
||||
RUN apt update && apt upgrade -y
|
||||
RUN apt install -y \
|
||||
gridsite-clients
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
14
distros/debian/action.yaml
Normal file
14
distros/debian/action.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
name: debian
|
||||
description: "Run Debian commands."
|
||||
inputs:
|
||||
args:
|
||||
description: "Shell arguments to pass into Debian."
|
||||
required: true
|
||||
outputs:
|
||||
console:
|
||||
description: "The console output of the command."
|
||||
runs:
|
||||
using: docker
|
||||
image: Dockerfile
|
||||
args:
|
||||
- "${{ inputs.args }}"
|
||||
16
distros/debian/entrypoint.sh
Normal file
16
distros/debian/entrypoint.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
ARGS="$@"
|
||||
|
||||
OUTPUT=$(bash -c "$ARGS")
|
||||
RESULT=$?
|
||||
echo "$OUTPUT"
|
||||
|
||||
#Output multiline strings.
|
||||
#https://trstringer.com/github-actions-multiline-strings/
|
||||
if [[ -n "$OUTPUT" ]]; then
|
||||
echo "console<<EOF" >> "$GITHUB_OUTPUT"
|
||||
echo "$OUTPUT" >> "$GITHUB_OUTPUT"
|
||||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
exit $RESULT
|
||||
Reference in New Issue
Block a user