Skip to content

Commit

Permalink
GitHub Actions: Improve speed for workflow to deploy docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluchu committed Nov 26, 2024
1 parent 2a0975c commit 14235bd
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/docker-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 14235bd

Please sign in to comment.