Update push_aliyun_image.yml

This commit is contained in:
初意 2024-08-15 13:47:55 +08:00 committed by GitHub
parent 24c9c3c33a
commit e505212731
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
name: Push Aliyun Image Registry name: Manual Push Aliyun Image Registry
on: on:
workflow_dispatch: workflow_dispatch:
@ -6,8 +6,6 @@ on:
tag: tag:
description: 'Tag for the Docker image' description: 'Tag for the Docker image'
required: true required: true
release:
types: [published]
jobs: jobs:
build: build:
@ -35,7 +33,7 @@ jobs:
env: env:
## 修改为你对应的镜像名称 ## 修改为你对应的镜像名称
IMAGE_NAME: ${{ secrets.ALIYUN_REGISTRY }}/xdbin/beancount-gs IMAGE_NAME: ${{ secrets.ALIYUN_REGISTRY }}/xdbin/beancount-gs
BRANCH: ${{ env.branch_name }} TAG: ${{ github.event.inputs.tag }}
run: | run: |
docker build -t $IMAGE_NAME:$BRANCH . docker build -t $IMAGE_NAME:$TAG .
docker push $IMAGE_NAME:$BRANCH docker push $IMAGE_NAME:$TAG