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 Nov 29, 2023
1 parent bf574f7 commit c72d10e
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Generated by: gromit policy
# Generated on: Tue Nov 21 18:30:13 UTC 2023
# Generated on: Wed Nov 29 22:49:43 UTC 2023

version: 2
updates:
Expand Down
65 changes: 9 additions & 56 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated by: gromit policy
# Generated on: Tue Nov 21 18:30:13 UTC 2023
# Generated on: Wed Nov 29 22:49:43 UTC 2023

# Distribution channels covered by this workflow
# - Ubuntu and Debian
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
restore-keys: |
${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- uses: goreleaser/goreleaser-action@v4
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean -f ${{ matrix.goreleaser }} ${{ !startsWith(github.ref, 'refs/tags/') && ' --snapshot' || '' }}
Expand All @@ -119,7 +119,7 @@ jobs:
# Don't mask to pass it across job boundaries
mask-aws-account-id: false

- uses: aws-actions/amazon-ecr-login@v1
- uses: aws-actions/amazon-ecr-login@v2
id: ecr
if: ${{ matrix.golang_cross == '1.19-bullseye' }}
with:
Expand Down Expand Up @@ -188,14 +188,14 @@ jobs:
- db: postgres15
markers: "and not sql"
steps:
- uses: aws-actions/configure-aws-credentials@v2
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::754489498669:role/ecr_rw_tyk
role-session-name: cipush
aws-region: eu-central-1

- id: ecr
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
mask-aws-account-id: 'true'
Expand Down Expand Up @@ -412,61 +412,14 @@ jobs:
context: "."
file: Dockerfile
push: false
smoke-tests:
needs:

release-tests:
needs:
- goreleaser
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::754489498669:role/ecr_rw_tyk
role-session-name: cipush
aws-region: eu-central-1

- id: ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'

- name: Run ci/tests
shell: bash
env:
GITHUB_TAG: ${{ github.ref }} /* mdcb or dash */
run: |
set -eaxo pipefail
if [ ! -d smoke-tests ]; then
echo "::warning No repo specific smoke tests defined"
fi
if [ ! -d ci/tests ]; then
echo "::warning No ci tests defined"
exit 0
fi
for d in ci/tests/*/
do
echo Attempting to test $d
if [ -d $d ] && [ -e $d/test.sh ]; then
cd $d
./test.sh ${{ steps.ecr.outputs.registry }}/tyk-pump:sha-${{ github.sha }}
cd -
fi
done
for d in smoke-tests/*/
do
echo Attempting to test $d
if [ -d $d ] && [ -e $d/test.sh ]; then
cd $d
./test.sh ${{ steps.ecr.outputs.registry }}/tyk-pump:sha-${{ github.sha }}
cd -
fi
done
uses: ./.github/workflows/release-tests.yml


sbom:
Expand Down
3 changes: 1 addition & 2 deletions ci/Dockerfile.std
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Generated by: gromit policy
# Generated on: Tue Nov 21 18:30:13 UTC 2023

# Generated on: Wed Nov 29 22:49:43 UTC 2023
FROM debian:bullseye-slim
ARG TARGETARCH

Expand Down
2 changes: 1 addition & 1 deletion ci/aws/byol.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Generated by: gromit policy
# Generated on: Tue Nov 21 18:30:13 UTC 2023
# Generated on: Wed Nov 29 22:49:43 UTC 2023

packer {
required_plugins {
Expand Down
4 changes: 2 additions & 2 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: Tue Nov 21 18:30:13 UTC 2023
# Generated on: Wed Nov 29 22:49:43 UTC 2023

# Check the documentation at http://goreleaser.com
# This project needs CGO_ENABLED=1 and the cross-compiler toolchains for
Expand All @@ -8,7 +8,7 @@
builds:
- id: std
ldflags:
- -X github.com/TykTechnologies/tyk-pump/pumps.VERSION={{.Version}} -X github.com/TykTechnologies/tyk-pump/pumps.Commit={{.FullCommit}} -X github.com/TykTechnologies/tyk-pump/pumps.buildDate={{.Date}} -X github.com/TykTechnologies/tyk-pump/pumps.builtBy=goreleaser
- -X github.com/TykTechnologies/tyk-pump/pumps.Version={{.Version}} -X github.com/TykTechnologies/tyk-pump/pumps.Commit={{.FullCommit}} -X github.com/TykTechnologies/tyk-pump/pumps.BuildDate={{.Date}} -X github.com/TykTechnologies/tyk-pump/pumps.BuiltBy=goreleaser
goos:
- linux
goarch:
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: Tue Nov 21 18:30:13 UTC 2023
# Generated on: Wed Nov 29 22:49:43 UTC 2023

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: Tue Nov 21 18:30:13 UTC 2023
# Generated on: Wed Nov 29 22:49:43 UTC 2023

# 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: Tue Nov 21 18:30:13 UTC 2023
# Generated on: Wed Nov 29 22:49:43 UTC 2023


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: Tue Nov 21 18:30:13 UTC 2023
# Generated on: Wed Nov 29 22:49:43 UTC 2023

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

0 comments on commit c72d10e

Please sign in to comment.