forked from TrueCloudLab/certificates
[action] use common goreleaser workflow (#1427)
This commit is contained in:
parent
825c5dd754
commit
53c7774d3c
1 changed files with 2 additions and 28 deletions
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
|
@ -55,38 +55,12 @@ jobs:
|
||||||
prerelease: ${{ steps.is_prerelease.outputs.IS_PRERELEASE }}
|
prerelease: ${{ steps.is_prerelease.outputs.IS_PRERELEASE }}
|
||||||
|
|
||||||
goreleaser:
|
goreleaser:
|
||||||
name: Upload Assets To Github w/ goreleaser
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: create_release
|
needs: create_release
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
uses: smallstep/workflows/.github/workflows/goreleaser.yml@main
|
||||||
- name: Checkout
|
secrets: inherit
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: 1.19
|
|
||||||
check-latest: true
|
|
||||||
- name: Install cosign
|
|
||||||
uses: sigstore/cosign-installer@v2
|
|
||||||
with:
|
|
||||||
cosign-release: 'v1.13.1'
|
|
||||||
- name: Get Release Date
|
|
||||||
id: release_date
|
|
||||||
run: |
|
|
||||||
RELEASE_DATE=$(date +"%y-%m-%d")
|
|
||||||
echo "RELEASE_DATE=${RELEASE_DATE}" >> ${GITHUB_ENV}
|
|
||||||
- name: Run GoReleaser
|
|
||||||
uses: goreleaser/goreleaser-action@v3
|
|
||||||
with:
|
|
||||||
version: 'latest'
|
|
||||||
args: release --clean
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GORELEASER_PAT }}
|
|
||||||
RELEASE_DATE: ${{ env.RELEASE_DATE }}
|
|
||||||
COSIGN_EXPERIMENTAL: 1
|
|
||||||
|
|
||||||
build_upload_docker:
|
build_upload_docker:
|
||||||
name: Build & Upload Docker Images
|
name: Build & Upload Docker Images
|
||||||
|
|
Loading…
Reference in a new issue