File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 9898 if : needs.release-please.outputs.releases_created == 'true'
9999 runs-on : ubuntu-latest
100100 steps :
101- - name : Extract semver major version
102- id : semver
103- run : |
104- major=$(echo "${{ needs.release-please.outputs.tag_name }}" | cut -d. -f1)
105- echo "major=${major}" >> "$GITHUB_OUTPUT"
106101 - name : Build docker
107102 uses : meysam81/build-docker@main
108103 with :
@@ -111,6 +106,9 @@ jobs:
111106 image-name : ghcr.io/meysam81/${{ github.event.repository.name }}
112107 image-extra-tags : |
113108 ghcr.io/meysam81/${{ github.event.repository.name }}:${{ needs.release-please.outputs.tag_name }}
114- ghcr.io/meysam81/${{ github.event.repository.name }}:${{ steps.semver.outputs.major }}
115109 ghcr.io/meysam81/${{ github.event.repository.name }}:stable
110+ metadata-tags : |
111+ type=semver,pattern={{version}}
112+ type=semver,pattern={{major}}.{{minor}}
113+ type=semver,pattern={{major}}
116114 ref : ${{ needs.release-please.outputs.tag_name }}
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ case $OS in
8888 ;;
8989esac
9090
91- ASSET_NAME=" prometheus-command-timer_ ${OS} _ ${ARCH} .${FILE_EXT} "
91+ ASSET_NAME=" prometheus-command-timer- ${OS} - ${ARCH} .${FILE_EXT} "
9292
9393
9494if [ " $VERSION " = " latest" ]; then
You can’t perform that action at this time.
0 commit comments