cache docker in build step
Some checks failed
/ docker (push) Failing after 20s

This commit is contained in:
Lee 2023-07-08 01:00:12 +01:00
parent d6f346200a
commit fab61be362

@ -1,4 +1,4 @@
Actions name: Publish Docker Image Actions name: Publish Docker Image (Development)
on: on:
push: push:
branches: branches:
@ -11,7 +11,14 @@ jobs:
- name: Checkout - name: Checkout
uses: https://github.com/actions/checkout@v3 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: | run: |
wget -q -O /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-20.10.23.tgz \ 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 \ && tar --extract --file /tmp/docker.tgz --directory /usr/bin --strip-components 1 --no-same-owner docker/docker \
@ -31,4 +38,4 @@ jobs:
with: with:
push: true push: true
context: . context: .
tags: fascinated/sharex-php-uploader:development tags: fascinated/sharex-php-uploader:latest