Skip to content

Merge pull request #14 from cyliu0/tpch-prepare-ddl #18

Merge pull request #14 from cyliu0/tpch-prepare-ddl

Merge pull request #14 from cyliu0/tpch-prepare-ddl #18

Workflow file for this run

name: Build Images
on:
# Commits on main branch
push:
branches:
- master
tags:
- 'v*.*.*'
# For manually triggering workflow
workflow_dispatch:
jobs:
build_docker_images:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/risingwavelabs/go-tpc
tags: |
type=schedule,prefix=nightly-,pattern={{date 'YYYYMMDD'}}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=sha
type=raw,value=latest,enable={{is_default_branch}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}