chore: update action's title

pull/4383/head
johnnyjoy 3 months ago
parent 849bf66612
commit 0e303181a9

@ -1,4 +1,4 @@
name: build-and-push-release-image name: Build and Push Release Image by Branch
on: on:
push: push:
@ -55,8 +55,6 @@ jobs:
type=semver,pattern={{version}},value=${{ env.VERSION }} type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }} type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
type=raw,value=stable type=raw,value=stable
flavor: |
latest=true
labels: | labels: |
org.opencontainers.image.version=${{ env.VERSION }} org.opencontainers.image.version=${{ env.VERSION }}

@ -1,11 +1,10 @@
name: build-and-push-stable-image name: Build and Push Release Image by Tag
on: on:
push: push:
tags: tags:
# Match stable and rc versions, such as 'v1.0.0' or 'v0.23.0-rc.0' # Match stable versions, such as 'v1.0.0'.
- "v*.*.*" - "v*.*.*"
- "v*.*.*-rc.*"
jobs: jobs:
build-and-push-stable-image: build-and-push-stable-image:
@ -22,11 +21,6 @@ jobs:
- name: Extract build args - name: Extract build args
# Extract version number and check if it's an rc version # Extract version number and check if it's an rc version
run: | run: |
if [[ "${GITHUB_REF_NAME}" =~ -rc ]]; then
echo "PRE_RELEASE=true" >> $GITHUB_ENV
else
echo "PRE_RELEASE=false" >> $GITHUB_ENV
fi
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Login to Docker Hub - name: Login to Docker Hub
@ -49,10 +43,8 @@ jobs:
install: true install: true
version: v0.9.1 version: v0.9.1
# Metadata for stable versions - name: Docker meta
- name: Docker meta for stable id: meta
id: meta-stable
if: env.PRE_RELEASE == 'false'
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: | images: |
@ -62,22 +54,6 @@ jobs:
type=semver,pattern={{version}},value=${{ env.VERSION }} type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }} type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
type=raw,value=stable type=raw,value=stable
flavor: |
latest=true
labels: |
org.opencontainers.image.version=${{ env.VERSION }}
# Metadata for rc versions
- name: Docker meta for rc
id: meta-rc
if: env.PRE_RELEASE == 'true'
uses: docker/metadata-action@v5
with:
images: |
neosmemo/memos
ghcr.io/usememos/memos
tags: |
type=raw,value=${{ env.VERSION }}
labels: | labels: |
org.opencontainers.image.version=${{ env.VERSION }} org.opencontainers.image.version=${{ env.VERSION }}
@ -89,5 +65,5 @@ jobs:
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: ${{ steps.meta-stable.outputs.tags || steps.meta-rc.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta-stable.outputs.labels || steps.meta-rc.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}

@ -1,4 +1,4 @@
name: build-and-push-test-image name: Build and Push Test Image
on: on:
push: push:

@ -1,4 +1,4 @@
name: Build artifacts name: Build Artifacts
on: on:
push: push:

@ -1,8 +1,8 @@
name: 'issue-translator' name: Issue Translator
on: on:
issue_comment: issue_comment:
types: [created] types: [created]
issues: issues:
types: [opened] types: [opened]
jobs: jobs:

@ -1,4 +1,4 @@
name: Proto linter name: Protobuf Linter
on: on:
push: push:

Loading…
Cancel
Save