Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
Verdict-as-a-Service Team committed Nov 18, 2024
1 parent b47e3bd commit 4f3b8d9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci-golang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,23 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: set legacy vaas gateway for production
run: |
if [ "${{ matrix.version-directory }}" == "./" -o "${{ matrix.version-directory }}" == "v2/" ]; then
echo "VAAS_URL=wss://gateway.production.vaas.gdatasecurity.de" >> $GITHUB_ENV
else
echo "VAAS_URL=https://gateway.production.vaas.gdatasecurity.de" >> $GITHUB_ENV
fi
- name: set staging environment
if: (inputs.environment == 'staging' || (startsWith(github.ref, 'refs/tags') && endsWith(github.ref, '-beta')))
run: |
echo "Beta version: Testing against staging"
echo "CLIENT_ID=${{ secrets.STAGING_CLIENT_ID }}" >> $GITHUB_ENV
echo "CLIENT_SECRET=${{ secrets.STAGING_CLIENT_SECRET }}" >> $GITHUB_ENV
echo "TOKEN_URL=https://account-staging.gdata.de/realms/vaas-staging/protocol/openid-connect/token" >> $GITHUB_ENV
if [ "${{ matrix.version-directory }}" == "./" || "${{ matrix.version-directory }}" == "v2/" ]; then
if [ "${{ matrix.version-directory }}" == "./" -o "${{ matrix.version-directory }}" == "v2/" ]; then
echo "VAAS_URL=wss://gateway.staging.vaas.gdatasecurity.de" >> $GITHUB_ENV
else
echo "VAAS_URL=https://gateway.staging.vaas.gdatasecurity.de" >> $GITHUB_ENV
Expand All @@ -89,7 +98,7 @@ jobs:
echo "CLIENT_ID=${{ secrets.DEVELOP_CLIENT_ID }}" >> $GITHUB_ENV
echo "CLIENT_SECRET=${{ secrets.DEVELOP_CLIENT_SECRET }}" >> $GITHUB_ENV
echo "TOKEN_URL=https://account-staging.gdata.de/realms/vaas-develop/protocol/openid-connect/token" >> $GITHUB_ENV
if [ "${{ matrix.version-directory }}" == "./" || "${{ matrix.version-directory }}" == "v2/" ]; then
if [ "${{ matrix.version-directory }}" == "./" -o "${{ matrix.version-directory }}" == "v2/" ]; then
echo "VAAS_URL=wss://gateway.develop.vaas.gdatasecurity.de" >> $GITHUB_ENV
else
echo "VAAS_URL=https://gateway.develop.vaas.gdatasecurity.de" >> $GITHUB_ENV
Expand All @@ -98,15 +107,6 @@ jobs:
echo "VAAS_USER_NAME=${{ secrets.DEVELOP_VAAS_USER_NAME }}" >> $GITHUB_ENV
echo "VAAS_PASSWORD=${{ secrets.DEVELOP_VAAS_PASSWORD }}" >> $GITHUB_ENV
- name: set legacy vaas gateway for production
if: (inputs.environment == 'main' || (startsWith(github.ref, 'refs/tags') && !(endsWith(github.ref, '-alpha') || endsWith(github.ref, '-beta'))))
run: |
if [ "${{ matrix.version-directory }}" == "./" || "${{ matrix.version-directory }}" == "v2/" ]; then
echo "VAAS_URL=wss://gateway.develop.vaas.gdatasecurity.de" >> $GITHUB_ENV
else
echo "VAAS_URL=https://gateway.develop.vaas.gdatasecurity.de" >> $GITHUB_ENV
fi
- name: run tests
run: go test -race ./...
working-directory: golang/vaas/${{ matrix.version-directory }}
Expand Down

0 comments on commit 4f3b8d9

Please sign in to comment.