Skip to content

Commit

Permalink
refine tag
Browse files Browse the repository at this point in the history
Signed-off-by: Aylei <rayingecho@gmail.com>
  • Loading branch information
aylei committed Aug 22, 2024
1 parent 48e809d commit 4a1c62f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,24 @@ jobs:
with:
fetch-depth: 0

- name: Docker tag
id: tag
shell: bash
run: |
VERSION=$(git describe --always --tags $(git rev-list --tags --max-count=1))
IMAGE_TAG=${VERSION}-$(git rev-parse --short HEAD)-$(date +'%Y-%m-%d')
echo "tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
matrixorigin/matrixone-operator
registry.cn-hangzhou.aliyuncs.com/mocloud/matrixone-operator
registry.cn-hangzhou.aliyuncs.com/moc-pub/matrixone-operator
tags: |
type=ref,event=branch
type=sha
type=raw,value=nightly-{{sha}}-{{date 'YYYY-MM-DD'}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Set up QEMU
uses: docker/setup-qemu-action@master
Expand Down
2 changes: 2 additions & 0 deletions api/core/v1alpha1/cnpool_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const (

const (
PodManagementPolicyPooling = "Pooling"

DirectPodLabel = "pool.matrixorigin.io/direct-pod"
)

const (
Expand Down

0 comments on commit 4a1c62f

Please sign in to comment.