Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push the latest image on push master. #802

Merged
merged 1 commit into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading