diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a16ddfa..8f2c526 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9ecf6f1..bd995b1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -190,6 +190,8 @@ changelog: # - "--yes" # needed on cosign 2.0.0+ # artifacts: all +docker_signs: + # kos: # - repository: ghcr.io/kubecub/github-label-syncer diff --git a/Makefile b/Makefile index f287b13..55c4db3 100644 --- a/Makefile +++ b/Makefile @@ -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: