Skip to content

Commit

Permalink
Build for amd64 and arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Kuzminskyi committed Jul 20, 2024
1 parent 07810ce commit cdbcc8a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ on: # yamllint disable-line rule:truthy
jobs:
push_to_registry:
name: "Push Docker image to Docker Hub"
runs-on: ubuntu-latest
runs-on: ${{matrix.os}}
strategy:
matrix:
os: ["ubuntu-latest", "macos-14"]

steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand All @@ -26,7 +30,8 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: "Buld and push the image"
- name: "Build and push the image"
run: |
docker build -t twindb/omnibus-ubuntu:${{ steps.extract_branch.outputs.branch }} .
docker push -t twindb/omnibus-ubuntu:${{ steps.extract_branch.outputs.branch }}
ARCH=$(uname -m)
docker build -t twindb/omnibus-ubuntu:${{ steps.extract_branch.outputs.branch }}-${ARCH} .
docker push twindb/omnibus-ubuntu:${{ steps.extract_branch.outputs.branch }}-${ARCH}

0 comments on commit cdbcc8a

Please sign in to comment.