Skip to content

Commit

Permalink
feat(build): use Docker Build Cloud for image build
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde committed Mar 22, 2024
1 parent f79fc6a commit 9dbdfe2
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/sub-build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ jobs:
type=edge,enable={{is_default_branch}}
type=schedule
# Setup Docker Buildx to allow use of docker cache layers from GH
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v2.1.2
Expand Down Expand Up @@ -152,6 +147,18 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# Setup Docker Buildx to allow use of docker cache layers from GH
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: "lab:latest"
driver: cloud
endpoint: "zfnd/zebra"
driver-opts: |
network=host
image=moby/buildkit:v0.13.0
# Build and push image to Google Artifact Registry, and possibly DockerHub
- name: Build & push
id: docker_build
Expand Down

0 comments on commit 9dbdfe2

Please sign in to comment.