From 0bb4f2fb0b9e418c9434c68dd8df9a4fb7415fde Mon Sep 17 00:00:00 2001 From: LukeGus Date: Sat, 7 Dec 2024 01:55:36 -0600 Subject: [PATCH] Docker build update #9 (nevermind not finanl) --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ .idea/workspace.xml | 19 ++++++++++++++----- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5123a6be..6a8d92d7 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -60,6 +60,24 @@ jobs: fi echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV + - name: Cache ghcr-cleaner + uses: actions/cache@v3 + with: + path: /usr/local/bin/ghcr-cleaner + key: ghcr-cleaner-${{ runner.os }}-${{ hashFiles('path/to/ghcr-cleaner-version-file') }} + restore-keys: | + ghcr-cleaner-${{ runner.os }}- + + - name: Download ghcr-cleaner if not cached + run: | + if ! command -v ghcr-cleaner &> /dev/null; then + echo "ghcr-cleaner not found, downloading..." + curl -L https://github.com/quartz-analytics/ghcr-cleaner/releases/download/v1.0.0/ghcr-cleaner-linux-amd64 -o /usr/local/bin/ghcr-cleaner + chmod +x /usr/local/bin/ghcr-cleaner + else + echo "ghcr-cleaner found, skipping download" + fi + - name: Build and Push Docker Image with Cache uses: docker/build-push-action@v2 with: diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 116bbfe3..a6c7b92c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,9 +4,9 @@