Skip to content

Update docker_release.yml #2

Update docker_release.yml

Update docker_release.yml #2

name: Docker image release
on:
push:
branches:
- docker-pebble-file
tags:
- "v[0-9].[0-9]+.[0-9]+*"
env:
DOCKER_REPO_NAME: "daxa-ai/pebblo"
jobs:
build-and-push:
name: Build base image
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11.x"
- name: Install pypa/build
run: |
pip install build
python -m build --wheel
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: $DOCKER_REPO_NAME
- name: Print Docker Meta
run: |
echo "output version"
echo ${{ steps.meta.outputs.version }}
- name: Build base images
uses: docker/bake-action@v4
env:
IMAGE_TAG_SUFFIX: ${{ steps.meta.outputs.version }}
PEBBLO_VERSION: 'v0.1.12'
with:
workdir: docker
targets: base
push: true