Skip to content

Commit

Permalink
Auto generated from templates by gromit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gromit committed Jan 17, 2024
1 parent 35e1e74 commit 10fbc3b
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 256 deletions.
216 changes: 77 additions & 139 deletions .github/workflows/release.yml

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions ci/Dockerfile.std
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by: gromit policy
# Generated on: Wed Nov 29 23:09:25 UTC 2023
# Generated on: Wed Jan 17 08:08:20 UTC 2024

FROM debian:bullseye-slim
ARG TARGETARCH

Expand All @@ -9,8 +10,8 @@ RUN apt-get update \
&& apt-get dist-upgrade -y ca-certificates

# Remove some things to decrease CVE surface
RUN dpkg --purge --force-remove-essential curl ncurses-base \
&& rm /usr/bin/passwd && rm /usr/sbin/adduser
RUN dpkg --purge --force-remove-essential curl ncurses-base || true
RUN rm -fv /usr/bin/passwd /usr/sbin/adduser || true

# Clean up caches, unwanted .a and .o files
RUN rm -rf /root/.cache \
Expand Down
101 changes: 0 additions & 101 deletions ci/aws/byol.pkr.hcl

This file was deleted.

22 changes: 13 additions & 9 deletions ci/goreleaser/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by: gromit policy
# Generated on: Wed Nov 29 23:09:25 UTC 2023
# Generated on: Wed Jan 17 08:08:20 UTC 2024

# Check the documentation at http://goreleaser.com
# This project needs CGO_ENABLED=1 and the cross-compiler toolchains for
Expand All @@ -19,7 +19,6 @@ builds:
- arm64
- s390x
binary: tyk-pump

dockers:
# Build tykio/tyk-pump-docker-pub, docker.tyk.io/tyk-pump/tyk-pump (amd64)
- ids:
Expand Down Expand Up @@ -65,7 +64,6 @@ dockers:
- "README.md"
- "LICENSE.md"
- "pump.example.conf"

docker_manifests:
- name_template: tykio/tyk-pump-docker-pub:{{ .Tag }}
image_templates:
Expand All @@ -75,11 +73,22 @@ docker_manifests:
image_templates:
- tykio/tyk-pump-docker-pub:{{ .Tag }}-amd64
- tykio/tyk-pump-docker-pub:{{ .Tag }}-arm64
- name_template: tykio/tyk-pump-docker-pub:v{{ .Major }}{{.Prerelease}}
image_templates:
- tykio/tyk-pump-docker-pub:{{ .Tag }}-amd64
- tykio/tyk-pump-docker-pub:{{ .Tag }}-arm64
- name_template: docker.tyk.io/tyk-pump/tyk-pump:{{ .Tag }}
image_templates:
- docker.tyk.io/tyk-pump/tyk-pump:{{ .Tag }}-amd64
- docker.tyk.io/tyk-pump/tyk-pump:{{ .Tag }}-arm64

- name_template: docker.tyk.io/tyk-pump/tyk-pump:v{{ .Major }}.{{ .Minor }}{{.Prerelease}}
image_templates:
- tykio/tyk-pump-docker-pub:{{ .Tag }}-amd64
- tykio/tyk-pump-docker-pub:{{ .Tag }}-arm64
- name_template: tykio/tyk-pump-docker-pub:v{{ .Major }}{{.Prerelease}}
image_templates:
- tykio/tyk-pump-docker-pub:{{ .Tag }}-amd64
- tykio/tyk-pump-docker-pub:{{ .Tag }}-arm64
nfpms:
- id: std
vendor: "Tyk Technologies Ltd"
Expand Down Expand Up @@ -121,7 +130,6 @@ nfpms:
signature:
key_file: tyk.io.signing.key
type: origin

publishers:
- name: tyk-pump-unstable
env:
Expand All @@ -130,16 +138,12 @@ publishers:
- RPMVERS={{ .Env.RPMVERS }}
- DEBVERS={{ .Env.DEBVERS }}
cmd: /pc.sh {{ .ArtifactPath }}


# This disables archives
archives:
- format: binary
allow_different_binary_count: true

checksum:
disable: true

release:
disable: true
github:
Expand Down
2 changes: 1 addition & 1 deletion ci/install/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Generated by: gromit policy
# Generated on: Wed Nov 29 23:09:25 UTC 2023
# Generated on: Wed Jan 17 08:08:20 UTC 2024

echo "Creating user and group..."
GROUPNAME="tyk"
Expand Down
2 changes: 1 addition & 1 deletion ci/install/post_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


# Generated by: gromit policy
# Generated on: Wed Nov 29 23:09:25 UTC 2023
# Generated on: Wed Jan 17 08:08:20 UTC 2024

# If "True" the install directory ownership will be changed to "tyk:tyk"
change_ownership="True"
Expand Down
2 changes: 1 addition & 1 deletion ci/install/post_remove.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# Generated by: gromit policy
# Generated on: Wed Nov 29 23:09:25 UTC 2023
# Generated on: Wed Jan 17 08:08:20 UTC 2024


cleanRemove() {
Expand Down
2 changes: 1 addition & 1 deletion ci/install/post_trans.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# Generated by: gromit policy
# Generated on: Wed Nov 29 23:09:25 UTC 2023
# Generated on: Wed Jan 17 08:08:20 UTC 2024

if command -V systemctl >/dev/null 2>&1; then
if [ ! -f /lib/systemd/system/tyk-pump.service ]; then
Expand Down

0 comments on commit 10fbc3b

Please sign in to comment.