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 8afcb93 commit 5920918
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ jobs:
contents: read
packages: write
steps:
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
GIT_RELEASE=$(${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} | 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 All @@ -48,7 +40,7 @@ jobs:
images: |
ghcr.io/${{ github.repository }}/${{ inputs.image }}
tags: |
type=raw,${{ steps.releaseVersion.outputs.release_tag }}
type=ref,event=branch
type=sha,format=long
- name: Build and push Docker images
Expand All @@ -69,7 +61,7 @@ jobs:
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
GIT_RELEASE=$(${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} | cut -d'/' -f 3)
GIT_RELEASE=$((${{ 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
Expand Down

0 comments on commit 5920918

Please sign in to comment.