Skip to content

Commit

Permalink
added multi arch dockerbuild.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj Burnwal committed Sep 14, 2024
1 parent 6ebdf6e commit 8a8a34f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docker-build-multi-arch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: ci-docker-multi-arch
on:
workflow_dispatch:

jobs:
docker:
name: Build base image
runs-on: self-hosted
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:raj-v1
platforms: linux/amd64,linux/arm64
file: ./deploy/docker/Dockerfile.base
build-args: |
build_image = "python:3.11"
base_image = "python:3.11"
pebblo_version = "main"

0 comments on commit 8a8a34f

Please sign in to comment.