Skip to content

Build and Publish Docker Image #15

Build and Publish Docker Image

Build and Publish Docker Image #15

Workflow file for this run

name: Build and Publish Docker Image
on:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: self-hosted
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .github
file: .github/Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}/tt-mlir-ubuntu-22-04:${{ github.sha }}
ghcr.io/${{ github.repository }}/tt-mlir-ubuntu-22-04:latest