Skip to content

testing multi-arch docker build. #1

testing multi-arch docker build.

testing multi-arch docker build. #1

name: ci-docker-multi-arch
on:
push:
branches:
- multi-arch
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"