From 14235bd031d12321444b21c98bd937f48cc50302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Tue, 26 Nov 2024 11:35:12 +0100 Subject: [PATCH] GitHub Actions: Improve speed for workflow to deploy docker images --- .github/workflows/docker-deploy.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-deploy.yaml b/.github/workflows/docker-deploy.yaml index 767897c..edbf680 100644 --- a/.github/workflows/docker-deploy.yaml +++ b/.github/workflows/docker-deploy.yaml @@ -29,10 +29,27 @@ jobs: - name: Source code checkout uses: actions/checkout@v4 + #- name: Gradle cache + # uses: actions/setup-java@v4 + # with: + # distribution: 'corretto' + # java-version: '21' + # cache: 'gradle' + # + #- name: Setup Gradle + # uses: gradle/actions/setup-gradle@v4 + # + #- name: Gradle build + # run: ./gradlew build --no-daemon + # Step 2: Configure Docker Buildx - name: Configure Docker Buildx uses: docker/setup-buildx-action@v3 + # Step 2.5: Setup QEMU + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + # Step 3: Log in to Docker Hub - name: Log in to Docker Hub uses: docker/login-action@v3 @@ -70,7 +87,11 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64 + #platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 + cache-from: type=gha + cache-to: type=gha,mode=max + #github-token: ${{ secrets.GHCR_TOKEN }} # Step 7: Generate artifact attestation - name: Generate artifact attestation