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 Apr 3, 2024
1 parent 83b7942 commit d6bec3f
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 UTC 2024

# Distribution channels covered by this workflow
# - Ubuntu and Debian
Expand Down Expand Up @@ -86,24 +87,21 @@ jobs:
goreleaser release --clean -f ${{ matrix.goreleaser }} ${{ !startsWith(github.ref, 'refs/tags/') && ' --snapshot' || '' }}' | tee /tmp/build.sh
chmod +x /tmp/build.sh
docker run --rm --privileged -e GITHUB_TOKEN=${{ github.token }} \
-e GOPRIVATE=github.com/TykTechnologies \
-e GOPRIVATE=github.com/TykTechnologies \
-e GO111MODULE=on \
-e DEBVERS='${{ matrix.debvers }}' \
-e RPMVERS='${{ matrix.rpmvers }}' \
-e CGO_ENABLED=${{ matrix.cgo }} \
-e NFPM_STD_PASSPHRASE="$NFPM_STD_PASSPHRASE" \
-e GPG_FINGERPRINT=12B5D62C28F57592D1575BD51ED14C59E37DAC20 \
-e PKG_SIGNING_KEY="$PKG_SIGNING_KEY" \
-e PACKAGECLOUD_TOKEN=$PACKAGECLOUD_TOKEN \
-e DEBVERS='${{ matrix.debvers }}' \
-e RPMVERS='${{ matrix.rpmvers }}' \
-e CGO_ENABLED=${{ matrix.cgo }} \
-e NFPM_STD_PASSPHRASE="$NFPM_STD_PASSPHRASE" \
-e GPG_FINGERPRINT=12B5D62C28F57592D1575BD51ED14C59E37DAC20 \
-e PKG_SIGNING_KEY="$PKG_SIGNING_KEY" \
-e PACKAGECLOUD_TOKEN=$PACKAGECLOUD_TOKEN \
-v ${{github.workspace}}:/go/src/github.com/TykTechnologies/tyk-pump \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.docker/config.json:/root/.docker/config.json \
-e GOCACHE=/cache/go-build \
-e GOMODCACHE=/go/pkg/mod \
-v ~/go/pkg/mod:/go/pkg/mod \
-v ~/.cache/go-build:/cache/go-build \
-v /tmp/build.sh:/tmp/build.sh \
-w /go/src/github.com/TykTechnologies/tyk-pump \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ~/.docker/config.json:/root/.docker/config.json \
-v ~/go/pkg/mod:/go/pkg/mod \
-v /tmp/build.sh:/tmp/build.sh \
-w /go/src/github.com/TykTechnologies/tyk-pump \
tykio/golang-cross:${{ matrix.golang_cross }} /tmp/build.sh
- uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
1 change: 1 addition & 0 deletions ci/Dockerfile.std
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 UTC 2024

FROM debian:bullseye-slim
ARG TARGETARCH
Expand Down
1 change: 1 addition & 0 deletions ci/bin/pc.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 UTC 2024

# goreleaser calls a custom publisher for each artefact packagecloud
# expects the distro version when pushing this script bridges both by
Expand Down
1 change: 1 addition & 0 deletions ci/bin/unlock-agent.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 UTC 2024

# Get the GPG fingerprint with gpg --with-keygrip --list-secret-keys
if [[ -z "${PKG_SIGNING_KEY}" || -z "${NFPM_STD_PASSPHRASE}" || -z "${GPG_FINGERPRINT}" ]]; then
Expand Down
1 change: 1 addition & 0 deletions ci/goreleaser/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 UTC 2024

# Check the documentation at http://goreleaser.com
# This project needs CGO_ENABLED=1 and the cross-compiler toolchains for
Expand Down
1 change: 1 addition & 0 deletions ci/install/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 UTC 2024

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


# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 UTC 2024

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

# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 UTC 2024


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

# Generated by: gromit policy
# Generated on: Wed Apr 3 06:48:24 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 d6bec3f

Please sign in to comment.