From 3fead5adde13c9ea7f05eace7fab955ae5ea9d92 Mon Sep 17 00:00:00 2001 From: AH-dark Date: Tue, 29 Aug 2023 19:48:24 +0800 Subject: [PATCH] fix(goreleaser): removed docker image configurations --- .github/workflows/build.yml | 8 ++++++++ .github/workflows/release.yml | 11 ++++++----- .goreleaser.yml | 8 -------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4208f49..4b4b28f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,14 @@ jobs: with: go-version: '1.21.0' + - name: Cache Go modules + uses: actions/cache@v1 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Build run: go build -v . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2dadcc..f4beb13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,12 +26,13 @@ jobs: with: go-version: '1.21' - - name: Authenticate to GitHub Container Registry - uses: docker/login-action@v1 + - name: Cache Go modules + uses: actions/cache@v1 with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- - name: Import GPG key id: import_gpg diff --git a/.goreleaser.yml b/.goreleaser.yml index a4c18c3..29d22bc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -60,14 +60,6 @@ release: prerelease: auto mode: append -dockers: - - image_templates: - - >- - {{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Tag }} - goos: linux - goarch: amd64 - dockerfile: Dockerfile - checksum: name_template: 'checksums.txt'