Skip to content

Commit a044d44

Browse files
committed
fix(CI): rename downloadable asset name in docker image
1 parent b773631 commit a044d44

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/ci.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,6 @@ jobs:
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 }}

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ case $OS in
8888
;;
8989
esac
9090

91-
ASSET_NAME="prometheus-command-timer_${OS}_${ARCH}.${FILE_EXT}"
91+
ASSET_NAME="prometheus-command-timer-${OS}-${ARCH}.${FILE_EXT}"
9292

9393

9494
if [ "$VERSION" = "latest" ]; then

0 commit comments

Comments
 (0)