Add basic action

This commit is contained in:
TheiLLeniumStudios
2023-02-06 09:21:47 +00:00
parent 5c62a6fbfe
commit c98c66dda7
3 changed files with 50 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# Container image that runs your code
FROM alpine:3.17
RUN apk add --no-cache curl tar
ARG RCON_VERSION="0.10.2"
RUN curl -LO https://github.com/gorcon/rcon-cli/releases/download/v${RCON_VERSION}/rcon-${RCON_VERSION}-amd64_linux.tar.gz && \
tar -xvf rcon-${RCON_VERSION}-amd64_linux.tar.gz && \
mv rcon-${RCON_VERSION}-amd64_linux/rcon /usr/local/bin/ && \
rm -rf rcon-${RCON_VERSION}-amd64_linux*
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]