From 9228529f189061fa2f7fe25d80871003efbed968 Mon Sep 17 00:00:00 2001 From: Jannik Reimers Date: Sun, 5 Jan 2025 21:14:59 +0100 Subject: [PATCH] fuck the cache, it didnt wanna work properly anyways --- .github/workflows/root.yml | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/root.yml b/.github/workflows/root.yml index be87cbd..bea574a 100644 --- a/.github/workflows/root.yml +++ b/.github/workflows/root.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Disable SSL verify (Temporary Fix) run: git config --global http.sslVerify false - + - uses: actions/checkout@v4 - name: Set up QEMU @@ -33,29 +33,11 @@ jobs: id: date run: echo "::set-output name=date::$(date +'%Y-%m-%d')" - - name: Gradle Cache - uses: actions/cache/restore@v4 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-Feixiao - restore-keys: | - ${{ runner.os }}-gradle- - - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Gradle (Build) run: "./gradlew build" - - - name: Gradle Cache - uses: actions/cache/save@v4 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-Feixiao - name: Login to Gitea Registry uses: docker/login-action@v3 @@ -67,9 +49,15 @@ jobs: - name: Build the Docker image run: docker build -t pi5:8125/jansel/feixiao:latest -t pi5:8125/jansel/feixiao:${{ steps.date.outputs.date }} . - + - name: Push the Docker image related to this workflow run: docker push pi5:8125/jansel/feixiao:${{ steps.date.outputs.date }} - + - name: Push the latest Docker image - run: docker push pi5:8125/jansel/feixiao:latest \ No newline at end of file + run: docker push pi5:8125/jansel/feixiao:latest + + - name: Remove the Docker image + run: docker rmi pi5:8125/jansel/feixiao:${{ steps.date.outputs.date }} + + - name: Force remove the latest Docker image + run: docker rmi pi5:8125/jansel/feixiao:latest --force