Skip to content

Commit

Permalink
fix: update release flow (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten authored May 30, 2023
1 parent e3d41e8 commit 64afb7f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
with:
go-version: "1.20"

- name: Login to DockerHub
uses: docker/login-action@v1
- name: Login to ghcr.io registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Configure Git
run: |
Expand All @@ -42,7 +43,7 @@ jobs:
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
20 changes: 8 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: lassie-bot-dog

before:
hooks:
- go mod tidy
builds:
-
flags:
- flags:
- -trimpath
goos:
- darwin
Expand All @@ -19,31 +17,29 @@ builds:
env:
- CGO_ENABLED=0
archives:
-
format_overrides:
- format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE

checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: 'snapshot-{{ time "2006-01-02" }}'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"
dockers:
-
# GOOS of the built binary that should be used.
- # GOOS of the built binary that should be used.
goos: linux
# GOARCH of the built binary that should be used.
goarch: amd64
dockerfile: Dockerfile
image_templates:
- "geprog/lassie-bot-dog:{{ .Tag }}"
- "geprog/lassie-bot-dog:latest"
- "ghcr.io/geprog/lassie-bot-dog:{{ .Tag }}"
- "ghcr.io/geprog/lassie-bot-dog:latest"
11 changes: 7 additions & 4 deletions charts/lassie-bot-dog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gitlab:

image:
pullPolicy: IfNotPresent
repository: "geprog/lassie-bot-dog"
repository: "ghcr.io/geprog/lassie-bot-dog"
# Overrides the image tag whose default is the chart appVersion.
tag: ""

Expand All @@ -29,18 +29,21 @@ serviceAccount:

podAnnotations: {}

podSecurityContext: {}
podSecurityContext:
{}
# fsGroup: 2000

securityContext: {}
securityContext:
{}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down

0 comments on commit 64afb7f

Please sign in to comment.