Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix(goreleaser): removed docker image configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Aug 29, 2023
1 parent 0c0b901 commit 3fead5a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 3fead5a

Please sign in to comment.