feat: include integration tests logs in release artifacts
@@ -60,3 +60,42 @@ jobs:
echo "$release $prefix.tar.xz"
ls -lah "$prefix.tar.xz"
echo "$prefix.tar.xz" | .github/workflows/release.sh ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} upload "$release"
+ upload_integration_tests_logs_to_release:
+ needs: create_release
+ permissions:
+ contents: write
+ id-token: write
+ runs-on: ec2-gardenlinux-amd64
+ strategy:
+ fail-fast: false
+ matrix:
+ architecture: [ amd64, arm64 ]
+ cname: [ gcp-gardener_prod, aws-gardener_prod, azure-gardener_prod ]
+ exclude:
+ - architecture: arm64
+ cname: gcp-gardener_prod
+ - architecture: arm64
+ cname: azure-gardener_prod
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/download-artifact@v2
+ with:
+ name: release
+ - uses: aws-actions/configure-aws-credentials@v1
+ with:
+ role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
+ role-session-name: ${{ secrets.AWS_OIDC_SESSION }}
+ aws-region: ${{ secrets.AWS_REGION }}
+ - name: download build artifacts from S3
+ run: |
+ commit="$(echo "${{ inputs.commit }}" | cut -c -7)"
+ prefix="${{ matrix.cname }}-${{ matrix.architecture }}-${{ inputs.version }}-$commit"
+ aws s3 cp "s3://${{ secrets.AWS_S3_BUCKET }}/integration-tests-logs/$prefix.integration-tests-log" ./
+ - name: upload to release
+ run: |
+ commit="$(echo "${{ inputs.commit }}" | cut -c -7)"
+ release="$(cat .github_release)"
+ prefix="${{ matrix.cname }}-${{ matrix.architecture }}-${{ inputs.version }}-$commit"
+ echo "$release $prefix.integration-tests-log"
+ ls -lah "$prefix.integration-tests-log"
+ echo "$prefix.integration-tests-log" | .github/workflows/release.sh ${{ secrets.GITHUB_TOKEN }} ${{ github.repository }} upload "$release"
