add test call for large binary #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI/CD odh-v2-core-writer-2 | |
| on: | |
| push: | |
| paths: | |
| - "infrastructure/raw-writer-2/**" | |
| - "infrastructure/helm/raw-writer-2/**" | |
| - ".github/workflows/odh-v2-core-writer-2.yaml" | |
| workflow_dispatch: | |
| env: | |
| WORKING_DIRECTORY: infrastructure/raw-writer-2 | |
| KUBERNETES_NAMESPACE: core | |
| KUBERNETES_VALUE_PATH: infrastructure/helm/raw-writer-2/values.yaml | |
| KUBERNETES_CHART_PATH: infrastructure/helm/raw-writer-2/raw-writer-2 | |
| PROJECT_NAME: raw-writer-2 | |
| jobs: | |
| build: | |
| if: github.ref == 'refs/heads/wip/raw-writer-2' | |
| runs-on: ubuntu-24.04 | |
| concurrency: odh-v2-core-writer-2-build | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Log in to GitHub Docker Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Manually build and push image | |
| env: | |
| IMAGE_TAG: ${{ github.sha }} | |
| run: cd ${{ env.WORKING_DIRECTORY }} && ./build.sh | |
| deploy: | |
| if: github.ref == 'refs/heads/wip/raw-writer-2' | |
| needs: | |
| - build | |
| runs-on: ubuntu-24.04 | |
| concurrency: odh-v2-core-writer-2-build-deploy | |
| environment: ${{ github.ref == 'refs/heads/wip/raw-writer-2' && 'test' || 'unknown' }} | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Patch image tag in values file | |
| env: | |
| IMAGE_TAG: ${{ github.sha }} | |
| run: yq e -i '.image.tag = strenv(IMAGE_TAG)' ${{ env.KUBERNETES_VALUE_PATH }} | |
| - name: Deploy on cluster | |
| uses: noi-techpark/github-actions/helm-deploy@v2 | |
| with: | |
| k8s-name: ${{ env.PROJECT_NAME }} | |
| k8s-namespace: ${{ env.KUBERNETES_NAMESPACE }} | |
| chart-path: ${{ env.KUBERNETES_CHART_PATH }} | |
| values-file: ${{ env.KUBERNETES_VALUE_PATH }} | |
| aws-access-key-id: ${{ secrets[vars.AWS_KEY_ID] }} | |
| aws-secret-access-key: ${{ secrets[vars.AWS_KEY_SECRET] }} | |
| aws-eks-cluster-name: aws-main-eu-01 | |
| aws-region: eu-west-1 |