File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 3737 outputs :
3838 sha_short : ${{ steps.vars.outputs.sha }}
3939 repo_name : ${{ steps.vars.outputs.repo }}
40+ version : ${{ steps.vars.outputs.version }}
4041 steps :
4142 - name : Checkout Repository
4243 uses : actions/checkout@v3
4546 run : |
4647 echo "::set-output name=sha::$(echo ${GITHUB_SHA} | cut -c1-7)"
4748 echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2)"
49+ echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}"
4850
4951 build :
5052 name : Build Image
@@ -92,12 +94,11 @@ jobs:
9294 - name : Output Variables
9395 id : var
9496 run : |
95- version=${{ steps.meta.outputs.version }}
97+ version=latest
9698 if ${{ startsWith(github.ref, 'refs/tags/') }}; then
97- operator_version=v$version
99+ operator_version=v${{ needs.vars.outputs. version }}
98100 else
99- tag=$(git describe --tags --abbrev=0)
100- operator_version=$tag-$version-${{ needs.vars.outputs.sha_short }}
101+ operator_version=$version-${{ needs.vars.outputs.sha_short }}
101102 fi
102103 echo "::set-output name=version::$operator_version"
103104 - name : Build Image
You can’t perform that action at this time.
0 commit comments