Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 10, 2024
1 parent 50f4a1b commit 6c85381
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,26 @@ jobs:

strategy:
matrix:
container:
- api
- cli
container: [ api, cli ]
platform: [ linux/amd64, linux/arm64 ]

steps:

- name: checkout repo
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: setup docker buildx
uses: docker/setup-buildx-action@v3

- name: Build the Docker image ${{ matrix.container }}
run: docker build --tag ghcr.io/${{ github.repository_owner }}/hamframe-${{ matrix.container }}:latest ./${{ matrix.container }}
# 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: Build and push the Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/hamframe-${{ matrix.container }}:latest ./${{ matrix.container }}
platforms: ${{ matrix.platform }}

0 comments on commit 6c85381

Please sign in to comment.