Skip to content

Commit

Permalink
More changes to action
Browse files Browse the repository at this point in the history
  • Loading branch information
hatboyzero committed Feb 7, 2024
1 parent 63762b7 commit 1fe1e5f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ jobs:
images: |
ghcr.io/${{ github.repository }}/${{ inputs.image }}
tags: |
type=raw,latest
type=raw,release
type=raw,${{ steps.releaseVersion.outputs.release_tag }}
type=sha,format=long
Expand All @@ -71,10 +69,10 @@ jobs:
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
release_json=$(curl https://api.github.com/repos/${{ github.repository }}/releases)
release_tag=$(echo "$release_json" | jq -r '.[0].tag_name')
echo "release_tag: Latest Tag is : $release_tag"
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
GIT_RELEASE=$(${{ github.head_ref || github.ref_name }} | cut -d'/' -f 3)
echo "GIT_RELEASE=$GIT_RELEASE" >> $GITHUB_ENV
echo "release_tag: Latest Tag is : $GIT_RELEASE"
echo "release_tag=$GIT_RELEASE" >> $GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit 1fe1e5f

Please sign in to comment.