mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-22 02:02:14 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
c08aeae7f1
|
|||
|
915c9a9f71
|
@@ -205,7 +205,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Compile binary
|
- name: Compile and release semver
|
||||||
uses: wangyoucao577/go-release-action@v1.32
|
uses: wangyoucao577/go-release-action@v1.32
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GHCR_TOKEN }}
|
github_token: ${{ secrets.GHCR_TOKEN }}
|
||||||
@@ -222,6 +222,23 @@ jobs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
pre_command: export GODEBUG=http2client=0
|
pre_command: export GODEBUG=http2client=0
|
||||||
|
|
||||||
|
- name: Compile and release v1
|
||||||
|
uses: wangyoucao577/go-release-action@v1.32
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GHCR_TOKEN }}
|
||||||
|
goos: ${{ matrix.goos }}
|
||||||
|
goarch: ${{ matrix.goarch }}
|
||||||
|
ldflags: -s -w -X main.PKG_VERSION=${{ needs.prepare.outputs.RELEASE_VERSION }}
|
||||||
|
project_path: .
|
||||||
|
binary_name: semver-gen
|
||||||
|
asset_name: semver-gen-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
|
release_name: version v1
|
||||||
|
release_tag: v1
|
||||||
|
compress_assets: false
|
||||||
|
retry: 10
|
||||||
|
overwrite: true
|
||||||
|
pre_command: export GODEBUG=http2client=0
|
||||||
|
|
||||||
# - name: Create Release
|
# - name: Create Release
|
||||||
# id: create_release
|
# id: create_release
|
||||||
# uses: marvinpinto/action-automatic-releases@latest
|
# uses: marvinpinto/action-automatic-releases@latest
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
FROM golang:1-alpine as baseimg
|
FROM golang:1-alpine as baseimg
|
||||||
|
|
||||||
RUN apk add make ca-certificates
|
RUN apk add --no-cache make ca-certificates
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
ENV GO111MODULE=on CGO_ENABLED=1 GOOS=linux
|
ENV GO111MODULE=on CGO_ENABLED=1 GOOS=linux
|
||||||
COPY . /go/src/app/
|
COPY . /go/src/app/
|
||||||
|
|||||||
Reference in New Issue
Block a user