Commit 0e303181 authored by johnnyjoy's avatar johnnyjoy

chore: update action's title

parent 849bf666
name: build-and-push-release-image
name: Build and Push Release Image by Branch
on:
push:
......@@ -55,8 +55,6 @@ jobs:
type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
type=raw,value=stable
flavor: |
latest=true
labels: |
org.opencontainers.image.version=${{ env.VERSION }}
......
name: build-and-push-stable-image
name: Build and Push Release Image by Tag
on:
push:
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*.*.*-rc.*"
jobs:
build-and-push-stable-image:
......@@ -22,11 +21,6 @@ jobs:
- name: Extract build args
# Extract version number and check if it's an rc version
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
- name: Login to Docker Hub
......@@ -49,10 +43,8 @@ jobs:
install: true
version: v0.9.1
# Metadata for stable versions
- name: Docker meta for stable
id: meta-stable
if: env.PRE_RELEASE == 'false'
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
......@@ -62,22 +54,6 @@ jobs:
type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
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: |
org.opencontainers.image.version=${{ env.VERSION }}
......@@ -89,5 +65,5 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-stable.outputs.tags || steps.meta-rc.outputs.tags }}
labels: ${{ steps.meta-stable.outputs.labels || steps.meta-rc.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
name: build-and-push-test-image
name: Build and Push Test Image
on:
push:
......
name: Build artifacts
name: Build Artifacts
on:
push:
......
name: 'issue-translator'
name: Issue Translator
on:
issue_comment:
types: [created]
......
name: Proto linter
name: Protobuf Linter
on:
push:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment