2 Commits

Author SHA1 Message Date
e0ee6ff7c6 Fix caching issue
All checks were successful
Build / build (push) Successful in 1m36s
Replaced RUN curl <url> with ADD <url> to prevent archive caching.
2023-06-12 22:06:51 +02:00
5b4380a4d4 Fix pipeline
All checks were successful
Build / build (push) Successful in 46s
See https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294
2023-06-12 21:44:53 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -29,6 +29,8 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
context: .
file: ./Dockerfile

View File

@ -17,10 +17,10 @@ RUN chown root:root /entrypoint.sh && \
# Create a dedicated user for Akkoma
RUN adduser --system --shell /bin/false --home /opt/akkoma akkoma
# Clone the release build into a temporary directory and unpack it
# Download the release build into a temporary directory and unpack it
# then move the release to the home directory and delete temporary files
RUN curl 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' -o /tmp/akkoma.zip && \
unzip /tmp/akkoma.zip -d /tmp/ && \
ADD 'https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip' /tmp/akkoma.zip
RUN unzip /tmp/akkoma.zip -d /tmp/ && \
mv /tmp/release/* /opt/akkoma && \
rmdir /tmp/release && \
rm /tmp/akkoma.zip && \