Skip to content

Commit

Permalink
fix: show pretty version name instead of slug
Browse files Browse the repository at this point in the history
  • Loading branch information
arcln committed Jun 27, 2022
1 parent a0eebda commit 43c5f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ build-latest:
image: docker:stable-dind
script:
- export IMAGE_TAG="$CI_REGISTRY_IMAGE:${CI_COMMIT_REF_NAME:1}"
- docker buildx build --platform "$PLATFORMS" -t "$IMAGE_TAG" -t "$IMAGE_TAG_LATEST" --build-arg "VERSION=${CI_COMMIT_REF_SLUG:1}" --cache-from $CACHE_TAG --cache-to $CACHE_TAG --push .
- docker buildx build --platform "$PLATFORMS" -t "$IMAGE_TAG" -t "$IMAGE_TAG_LATEST" --build-arg "VERSION=${CI_COMMIT_REF_NAME:1}" --cache-from $CACHE_TAG --cache-to $CACHE_TAG --push .

semantic-release:
extends:
Expand All @@ -109,7 +109,7 @@ release-assets:
export GOOS=$(echo "$platform" | cut -d'/' -f1)
export GOARCH=$(echo "$platform" | cut -d'/' -f2)
BIN=$CI_PROJECT_NAME-$GOOS-$GOARCH
go build -tags netgo,osusergo -o $BIN -ldflags "-X \"github.com/enix/$CI_PROJECT_NAME/v3/internal.Version=${CI_COMMIT_REF_SLUG:1}\"" ./cmd/$CI_PROJECT_NAME
go build -tags netgo,osusergo -o $BIN -ldflags "-X \"github.com/enix/$CI_PROJECT_NAME/v3/internal.Version=${CI_COMMIT_REF_NAME:1}\"" ./cmd/$CI_PROJECT_NAME
./test/upload-release.sh "github_api_token=$GITHUB_TOKEN" "owner=enix" "repo=$CI_PROJECT_NAME" "tag=$CI_COMMIT_TAG" "filename=$BIN"
done
Expand Down

0 comments on commit 43c5f56

Please sign in to comment.