Skip to content

Commit

Permalink
feat: add sign
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Jul 18, 2023
1 parent c142385 commit 27bd4ca
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,30 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v3
with:
go-version: ${{ env.GO_VERSION }}

- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version: stable

- name: Install Dependencies
run: |
sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu \
libbtrfs-dev libgpgme-dev libdevmapper-dev \
qemu-user-static binfmt-support
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.BOT_GITHUB_TOKEN }}

# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
- uses: goreleaser/goreleaser-action@v4
Expand All @@ -38,8 +58,11 @@ jobs:
distribution: goreleaser
version: latest
args: release --clean

env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
USERNAME: ${{ github.repository_owner }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}

gorelease2:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ changelog:
# - "--yes" # needed on cosign 2.0.0+
# artifacts: all

docker_signs:


# kos:
# - repository: ghcr.io/kubecub/github-label-syncer
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ install.coscli:
install.coscmd:
@if which pip &>/dev/null; then pip install coscmd; else pip3 install coscmd; fi

## install.minio: Install minio, used to upload files to minio
.PHONY: install.minio
install.minio:
@$(GO) install github.com/minio/minio@latest

## install.delve: Install delve, used to debug go program
.PHONY: install.delve
install.delve:
Expand Down

0 comments on commit 27bd4ca

Please sign in to comment.