forked from daxa-ai/pebblo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added multi-arch build for docker. (daxa-ai#553)
* added multi-arch build for pebblo docker. --------- Co-authored-by: Raj Burnwal <[email protected]>
- Loading branch information
1 parent
0c8ff50
commit 67fd5d3
Showing
3 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
name: ci-docker-multi-arch | ||
on: | ||
push: | ||
tags: | ||
- "v[0-9].[0-9]+.[0-9]+*" | ||
|
||
jobs: | ||
docker: | ||
name: Build base image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USER }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- name: Get Release Tag | ||
run: | | ||
TAG=$(echo $GITHUB_REF | sed 's/refs\/tags\///') | ||
echo "VERSION=$(echo $TAG | sed 's/v//')" >> $GITHUB_ENV | ||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: ./deploy/docker | ||
push: true | ||
tags: daxaai/pebblo:${{ env.VERSION }} | ||
platforms: linux/amd64,linux/arm64 | ||
file: ./deploy/docker/Dockerfile.base | ||
build-args: | | ||
"build_image=python:3.11" | ||
"base_image=python:3.11" | ||
"pebblo_branch=${{ env.VERSION }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters