From fab61be3624d6ff8dbde371e41b1f2c7643711a6 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Sat, 8 Jul 2023 01:00:12 +0100 Subject: [PATCH] cache docker in build step --- .gitea/workflows/upload-image-dev.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/upload-image-dev.yaml b/.gitea/workflows/upload-image-dev.yaml index fbcde55..0276721 100644 --- a/.gitea/workflows/upload-image-dev.yaml +++ b/.gitea/workflows/upload-image-dev.yaml @@ -1,4 +1,4 @@ -Actions name: Publish Docker Image +Actions name: Publish Docker Image (Development) on: push: branches: @@ -11,7 +11,14 @@ jobs: - name: Checkout uses: https://github.com/actions/checkout@v3 - - name: Download Docker + - uses: actions/cache@v3 + id: docker-cache + with: + path: /usr/bin/docker + key: ${{ runner.os }}-${{ hashFiles('**') }} + + - name: Install Docker + if: steps.docker-cache.outputs.cache-hit != 'true' run: | wget -q -O /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-20.10.23.tgz \ && tar --extract --file /tmp/docker.tgz --directory /usr/bin --strip-components 1 --no-same-owner docker/docker \ @@ -31,4 +38,4 @@ jobs: with: push: true context: . - tags: fascinated/sharex-php-uploader:development + tags: fascinated/sharex-php-uploader:latest