Skip to content

fix(compose): tests suite enhance (#29) #131

fix(compose): tests suite enhance (#29)

fix(compose): tests suite enhance (#29) #131

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- main
tags:
- v*
pull_request:
workflow_dispatch:
permissions:
packages: write
contents: read
jobs:
openmldb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name == 'push'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository_owner }}/openmldb-exporter
flavor:
latest=false
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=raw,value=workflow_dispatch,enable=${{ github.event_name == 'workflow_dispatch' }}
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build And Push
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
file: prod.Dockerfile
push: ${{ github.event_name == 'push' }}
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}