Skip to content

build(deps): bump docker/setup-qemu-action from 2 to 3 #107

build(deps): bump docker/setup-qemu-action from 2 to 3

build(deps): bump docker/setup-qemu-action from 2 to 3 #107

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@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
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@v4
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@v4
with:
context: .
file: prod.Dockerfile
push: ${{ github.event_name == 'push' }}
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}