mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 21:19:44 +00:00
feat: add build release image
This commit is contained in:
parent
fb4a38f007
commit
16ea00bd83
@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
# Run on pushing branches like `release/1.0.0`
|
# Run on pushing branches like `release/1.0.0`
|
||||||
- "release/v*.*.*"
|
- "release/*.*.*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-release-image:
|
build-and-push-release-image:
|
||||||
@ -17,15 +17,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract build args
|
- name: Extract build args
|
||||||
# Extract version from branch name
|
# Extract version from branch name
|
||||||
# Example: branch name `release/v1.0.0` sets up env.VERSION=1.0.0
|
# Example: branch name `release/1.0.0` sets up env.VERSION=1.0.0
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=${GITHUB_REF_NAME#release/v}" >> $GITHUB_ENV
|
echo "VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: neosmemo
|
username: stevenlgtm
|
||||||
password: ${{ secrets.DOCKER_NEOSMEMO_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
@ -41,4 +41,4 @@ jobs:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: neosmemo/memos:latest, neosmemo/memos:${{ env.VERSION }}
|
tags: stevenlgtm/corgi:${{ env.VERSION }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user