Skip to content

Modern Docker Management, Designed for Everyone

chore: use docker build cloud

Kyle Mendell01a6dc217eb0
diff --git a/.github/workflows/build-next.yml b/.github/workflows/build-next.yml
index 7e324efad..90a2efe87 100644
--- a/.github/workflows/build-next.yml
+++ b/.github/workflows/build-next.yml
@@ -5,11 +5,11 @@ on:
branches:
- main
paths:
- - 'backend/**'
- - 'frontend/**'
- - 'package.json'
- - 'pnpm-lock.yaml'
- - 'frontend/package.json'
+ - "backend/**"
+ - "frontend/**"
+ - "package.json"
+ - "pnpm-lock.yaml"
+ - "frontend/package.json"
workflow_dispatch:
concurrency:
@@ -28,6 +28,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v5
+ - name: Log in to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKER_USER }}
+ password: ${{ secrets.DOCKER_PAT }}
+
- name: Setup pnpm
uses: pnpm/action-setup@v4
@@ -39,13 +45,16 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v6
with:
- go-version-file: 'backend/go.mod'
+ go-version-file: "backend/go.mod"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
+ with:
+ driver: cloud
+ endpoint: "kmendell/ofkm"
- name: Set DOCKER_IMAGE_NAME
run: |
@@ -81,6 +90,6 @@ jobs:
- name: Container image attestation
uses: actions/attest-build-provenance@v3
with:
- subject-name: '${{ env.DOCKER_IMAGE_NAME }}'
+ subject-name: "${{ env.DOCKER_IMAGE_NAME }}"
subject-digest: ${{ steps.build-push-image.outputs.digest }}
push-to-registry: true