Skip to content

Commit

Permalink
ci(github): update container workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed Oct 20, 2023
1 parent 89615c9 commit a7e0833
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release_containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: release_containers

on:
workflow_dispatch:
inputs:
checkout_latest:
description: 'Checkout latest tag'
required: true
default: 'yes'
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
Expand All @@ -19,8 +24,8 @@ jobs:
if: github.event_name == 'workflow_dispatch'
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $LATEST_TAG
echo "TAG_VERSION=$LATEST_TAG" >> $GITHUB_ENV
[ "${{ github.event.inputs.checkout_latest }}" = "yes" ] && git checkout $LATEST_TAG
- name: Get push tag version
if: github.event_name == 'push'
Expand Down Expand Up @@ -51,8 +56,8 @@ jobs:
if: github.event_name == 'workflow_dispatch'
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $LATEST_TAG
echo "TAG_VERSION=$LATEST_TAG" >> $GITHUB_ENV
[ "${{ github.event.inputs.checkout_latest }}" = "yes" ] && git checkout $LATEST_TAG
- name: Get push tag version
if: github.event_name == 'push'
Expand Down

0 comments on commit a7e0833

Please sign in to comment.