Skip to content

Commit

Permalink
fix(ci): Support ARM builds (dragonflydb#126)
Browse files Browse the repository at this point in the history
* fix(ci): Support ARM builds

* use sha with CI

* unnecessary change

* unnecessary change

* QEMU and buildx

* load image locally

* push instead of load

* build only amd for CI

* unnecessary change
  • Loading branch information
Pothulapati authored and diffuse committed Nov 18, 2023
1 parent 57153bd commit 6771438
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,29 @@ jobs:
run: |
make build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Github container repository
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Publish image into GHCR
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/dragonflydb/operator:${{ github.ref_name }}
platforms: |
linux/amd64
linux/arm64
env:
DOCKER_BUILDKIT: 1
DOCKER_USERNAME: ${{ github.actor }}
Expand Down

0 comments on commit 6771438

Please sign in to comment.