6 Commits

Author SHA1 Message Date
cb6573e42b Update Dockerfile 2022-01-31 17:11:59 -05:00
49e6220958 Merge pull request #4 from skarnl/feature/fix-butler-download-url
Fix butler download url
2020-06-11 11:13:56 -04:00
53fdf15e50 Merge pull request #3 from skarnl/feature/move-butler-credentials
Store Butler credentials in env-var
2020-06-11 11:03:37 -04:00
Oskar van Velden
dea5c0fee7 Move BUTLER_CREDENTIALS to BUTLER_API_KEY 2020-06-11 16:25:38 +02:00
Oskar van Velden
b1f7d404eb Install unzip 2020-06-11 09:22:48 +02:00
Oskar van Velden
429eea9b6d FIx issue with old Butler download
There was an old reference to the Butler download.
Also fixed
2020-06-11 00:46:26 +02:00
2 changed files with 9 additions and 7 deletions

View File

@@ -1,16 +1,19 @@
FROM centos:8
FROM rockylinux:8
LABEL "com.github.actions.name"="Butler Push"
LABEL "com.github.actions.description"="Publishes releases to Itch.io using Butler"
LABEL "com.github.actions.icon"="upload"
LABEL "com.github.actions.color"="white"
RUN dnf install unzip -y
# Install Butler
ADD https://dl.itch.ovh/butler/linux-amd64/head/butler /usr/bin/
RUN chmod +x /usr/bin/butler
RUN butler upgrade --assume-yes
RUN curl -L -o butler.zip https://broth.itch.ovh/butler/linux-amd64/LATEST/archive/default \
&& unzip butler.zip \
&& cp butler /usr/bin \
&& chmod +x /usr/bin/butler
# Run butler push
ADD entrypoint.sh /entrypoint.sh
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -1,8 +1,7 @@
#!/bin/sh
set -e
mkdir -p ~/.config/itch
echo $BUTLER_CREDENTIALS > ~/.config/itch/butler_creds
export BUTLER_API_KEY=$BUTLER_CREDENTIALS
versionArgument=""