Skip to content

Commit

Permalink
fix smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ermirizio committed Nov 15, 2023
1 parent 1760ae2 commit 846cf58
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,20 @@ jobs:
- uses: actions/checkout@v3
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
# Don't mask to pass it across job boundaries
mask-aws-account-id: false

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

- name: Run ci/tests
shell: bash
env:
Expand All @@ -296,7 +310,7 @@ jobs:
echo Attempting to test $d
if [ -d $d ] && [ -e $d/test.sh ]; then
cd $d
./test.sh ${{ needs.goreleaser.outputs.tags }}
./test.sh ${{ steps.ecr.outputs.registry }}/tyk-pump:sha-${{ github.sha }}
cd -
fi
done
Expand All @@ -305,7 +319,7 @@ jobs:
echo Attempting to test $d
if [ -d $d ] && [ -e $d/test.sh ]; then
cd $d
./test.sh ${{ needs.goreleaser.outputs.tags }}
./test.sh ${{ steps.ecr.outputs.registry }}/tyk-pump:sha-${{ github.sha }}
cd -
fi
done
Expand Down
2 changes: 1 addition & 1 deletion ci/tests/csvpump/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
timeout: 10s

pump:
image: tykio/tyk-pump-docker-pub:${tag}
image: ${pump_image}
volumes:
- ./confs/tyk-pump.conf:/conf/tyk-pump.conf
- /tmp/pump-data:/pump-data
Expand Down
2 changes: 1 addition & 1 deletion ci/tests/csvpump/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function warn {
DEFAULT_GW_TAG=v4.0.1

[[ -z $1 ]] && usage "$0"
export tag=$1
export pump_image=$1
export gwtag=$2

if [[ -z $2 ]]; then
Expand Down

0 comments on commit 846cf58

Please sign in to comment.