Skip to content

Commit

Permalink
Testing tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
hatboyzero committed Feb 7, 2024
1 parent 2b212d7 commit f0bb085
Show file tree
Hide file tree
Showing 2 changed files with 385 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
contents: read
packages: write
steps:
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
GIT_RELEASE=$(echo ${{ github.ref_name }} | cut -d'/' -f 2)
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 @@ -40,7 +48,7 @@ jobs:
images: |
ghcr.io/${{ github.repository }}/${{ inputs.image }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}},value=${{ steps.releaseVersion.outputs.release_tag }}
type=sha,format=long
- name: Build and push Docker images
Expand All @@ -61,7 +69,7 @@ jobs:
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
GIT_RELEASE=$(echo ${{ github.ref_name }} | cut -d'/' -f 3)
GIT_RELEASE=$(echo ${{ github.ref_name }} | cut -d'/' -f 2)
echo "GIT_RELEASE=$GIT_RELEASE" >> $GITHUB_ENV
echo "release_tag: Latest Tag is : $GIT_RELEASE"
echo "release_tag=$GIT_RELEASE" >> $GITHUB_OUTPUT
Expand Down
Loading

0 comments on commit f0bb085

Please sign in to comment.