Skip to content

Commit

Permalink
chore: cleanups for goreleaser, and again
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmik committed Dec 6, 2023
1 parent f3791d4 commit a919774
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 55 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/codeql.yml

This file was deleted.

20 changes: 9 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ archives:
- builds_info:
group: root
owner: root
wrap_in_directory: true
files:
- src: configs/config.yaml
strip_parent: true
format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
Expand All @@ -29,16 +31,13 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- src: configs/example_config.yaml
dst: configs/config.yaml
strip_parent: true
wrap_in_directory: true

dockers:
- dockerfile: build/Dockerfile
- image_templates:
- "ghcr.io/kuzmik/{{.ProjectName}}:{{ .Tag }}"
- "ghcr.io/kuzmik/{{.ProjectName}}:latest"
# dockers:
# - dockerfile: build/Dockerfile
# - image_templates:
# - "ghcr.io/kuzmik/{{.ProjectName}}:{{ .Tag }}"
# - "ghcr.io/kuzmik/{{.ProjectName}}:latest"

checksum:
name_template: 'checksums.txt'
Expand All @@ -51,4 +50,3 @@ changelog:
filters:
exclude:
- '^docs:'
- '^test:'
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ run: build

docker: clean lint
@docker build --build-arg="VERSION=${VERSION}" --build-arg="BUILD_TIME=${BUILD_TIME}" --build-arg="BUILD_SHA=${BUILD_SHA}" -f build/dev.Dockerfile . -t proxysql-agent

snapshot: clean lint
@goreleaser --snapshot --clean

release: clean lint
@goreleaser --clean
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk update \
WORKDIR /app

COPY --chown=agent:agent --from=builder --chmod=700 /build/proxysql-agent /app/
COPY --chown=agent:agent --from=builder --chmod=600 /build/configs/example_config.yaml /app/config.yaml
COPY --chown=agent:agent --from=builder --chmod=600 /build/configs/config.yaml /app/config.yaml

USER agent

Expand Down
2 changes: 1 addition & 1 deletion build/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RUN apk update \
WORKDIR /app

COPY --chown=agent:agent --from=builder --chmod=700 /build/proxysql-agent /app/
COPY --chown=agent:agent --from=builder --chmod=600 /build/configs/example_config.yaml /app/config.yaml
COPY --chown=agent:agent --from=builder --chmod=600 /build/configs/config.yaml /app/config.yaml

USER agent

Expand Down
File renamed without changes.

0 comments on commit a919774

Please sign in to comment.