Skip to content

Commit

Permalink
Update push_aliyun_image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BaoXuebin authored Aug 15, 2024
1 parent 24c9c3c commit e505212
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/push_aliyun_image.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Push Aliyun Image Registry
name: Manual Push Aliyun Image Registry

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag for the Docker image'
required: true
release:
types: [published]

jobs:
build:
Expand Down Expand Up @@ -35,7 +33,7 @@ jobs:
env:
## 修改为你对应的镜像名称
IMAGE_NAME: ${{ secrets.ALIYUN_REGISTRY }}/xdbin/beancount-gs
BRANCH: ${{ env.branch_name }}
TAG: ${{ github.event.inputs.tag }}
run: |
docker build -t $IMAGE_NAME:$BRANCH .
docker push $IMAGE_NAME:$BRANCH
docker build -t $IMAGE_NAME:$TAG .
docker push $IMAGE_NAME:$TAG

0 comments on commit e505212

Please sign in to comment.