Skip to content

Commit

Permalink
chore: Push the latest image on push master.
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Liang <[email protected]>
  • Loading branch information
liangyuanpeng authored and mergify[bot] committed May 9, 2024
1 parent 349fad9 commit dca4449
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Push Docker Image

on:
workflow_dispatch: { }
push:
branches:
- master

env:
CI_RUST_TOOLCHAIN: 1.74.0
Expand Down Expand Up @@ -33,7 +36,12 @@ jobs:

- name: Generate App Version
id: generate_app_version
run: echo app_version=`git describe --tags --always` >> $GITHUB_OUTPUT
run: |
if [ ${{ github.event_name }} = "push" ];then
echo app_version=latest >> $GITHUB_OUTPUT
else
echo app_version=`git describe --tags --always` >> $GITHUB_OUTPUT
fi
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit dca4449

Please sign in to comment.