Skip to content

Commit

Permalink
DMD-33 exasol CI delete
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtabiberle committed Jan 17, 2025
1 parent afa34a1 commit 2f6327f
Showing 1 changed file with 1 addition and 90 deletions.
91 changes: 1 addition & 90 deletions .github/workflows/build-php-db-import-export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ on:
required: true
ABS_TERADATA_PASSWORD:
required: true
EXASOL_PASSWORD:
required: true
EXA_SAAS_TOKEN:
required: true
OAUTH_TOKEN_GITHUB:
Expand Down Expand Up @@ -78,14 +76,6 @@ env:
ABS_TERADATA_PASSWORD: ${{ secrets.ABS_TERADATA_PASSWORD }}
ABS_TERADATA_PORT: 1025
ABS_TERADATA_DATABASE: ci_ielib_abs
# Exasol
EXASOL_HOST: mbgghigkizhshorgb53ivhkrsu.clusters.exasol.com:8563
EXASOL_USERNAME: devel
EXASOL_PASSWORD: ${{ secrets.EXASOL_PASSWORD }}
EXA_SAAS_DB_ID: 5ThvKt2NQEqTf-QVEBcNeg
EXA_SAAS_HOST: https://cloud.exasol.com
EXA_SAAS_USER_ID: org_W0xrKhY2DEnGwmSO
EXA_SAAS_TOKEN: ${{ secrets.EXA_SAAS_TOKEN }}
# Bigquery
BQ_KEY_FILE: ${{ secrets.BQ_KEY_FILE }}
BQ_BUCKET_NAME: ie-ci-files-bucket
Expand Down Expand Up @@ -481,98 +471,19 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ env.S3_AWS_SECRET_ACCESS_KEY }}
run: docker compose run ci-php-db-import-export composer tests-${{ matrix.suite }}

pre-exasol-tests:
runs-on: ubuntu-latest
needs: build
concurrency: exasol-tests
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Exasol start
run: |
bash ./provisioning/scripts/exasolRun.sh -w || exit 1
exasol-tests:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
needs: [load-s3, pre-exasol-tests]
continue-on-error: true
strategy:
fail-fast: false
matrix:
suite:
- exasol
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.AWS_CREDENTIALS_ROLE_TO_ASSUME }}
aws-region: ${{ env.AWS_CREDENTIALS_REGION }}

-
name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

-
name: Pull image
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: ${{ env.ECR_REPOSITORY }}
IMAGE_TAG: ci-php-db-import-export-${{ github.sha }}
LOCAL_IMAGE: ${{ env.LOCAL_IMAGE }}
run: |
docker pull $REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker tag $REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $LOCAL_IMAGE:latest
#
# TESTS
#
-
name: Tests ${{ matrix.suite }}
env:
SUITE: ${{ matrix.suite }}
AWS_ACCESS_KEY_ID: ${{ env.S3_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ env.S3_AWS_SECRET_ACCESS_KEY }}
run: docker compose run ci-php-db-import-export composer tests-${{ matrix.suite }}

post-exasol-tests:
runs-on: ubuntu-latest
needs: exasol-tests
if: |
always() && (needs.exasol-tests.result != 'skipped')
concurrency: exasol-tests
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Exasol stop
if: ${{ always() }}
run: |
bash ./provisioning/scripts/exasolRun.sh -p || exit 1
#
# Clean up uploaded data
clean-s3:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
needs: [testsS3, testsAll, exasol-tests]
needs: [testsS3, testsAll]
if: |
always()
&& (
(needs.testsS3.result != 'skipped')
|| (needs.testsAll.result != 'skipped')
|| (needs.exasol-tests.result != 'skipped')
)
steps:
-
Expand Down

0 comments on commit 2f6327f

Please sign in to comment.