Skip to content

Commit

Permalink
Add build for arm (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
vencakrecl authored Feb 17, 2024
1 parent 70470e6 commit fbcffb1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,23 @@ jobs:

build:

runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: make build
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Push the Docker image
run: make push
-
name: Checkout
uses: actions/checkout@v4
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and Push the Docker image
run: make buildx
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ build:
docker build -t ${IMAGE} .

push:
docker push ${IMAGE}
docker push ${IMAGE}

buildx:
docker buildx build --platform linux/amd64,linux/arm64 --tag ${IMAGE} --push .

0 comments on commit fbcffb1

Please sign in to comment.