diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1a5a15..894a7dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | @@ -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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index cf99bc7..75f3f64 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,3 @@ -# 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 @@ -6,8 +5,7 @@ before: hooks: - go mod tidy builds: - - - flags: + - flags: - -trimpath goos: - darwin @@ -19,8 +17,7 @@ builds: env: - CGO_ENABLED=0 archives: - - - format_overrides: + - format_overrides: - goos: windows format: zip files: @@ -28,22 +25,21 @@ archives: - 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" diff --git a/charts/lassie-bot-dog/values.yaml b/charts/lassie-bot-dog/values.yaml index ee2fab0..84e3443 100644 --- a/charts/lassie-bot-dog/values.yaml +++ b/charts/lassie-bot-dog/values.yaml @@ -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: "" @@ -29,10 +29,12 @@ serviceAccount: podAnnotations: {} -podSecurityContext: {} +podSecurityContext: + {} # fsGroup: 2000 -securityContext: {} +securityContext: + {} # capabilities: # drop: # - ALL @@ -40,7 +42,8 @@ securityContext: {} # 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