diff --git a/.github/workflows/regression.yaml b/.github/workflows/regression.yaml index 61af663b64..da2e99f452 100644 --- a/.github/workflows/regression.yaml +++ b/.github/workflows/regression.yaml @@ -176,7 +176,7 @@ jobs: fi terraform init -backend-config ${{ matrix.test.backend_config }} ./${{ matrix.test.terraform_script }} apply - terraform taint aws_instance.control_plane + terraform taint -allow-missing aws_instance.control_plane terraform taint -allow-missing 'aws_instance.worker[0]' - name: Run the test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3f8afdf7a1..9f74bb37b3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -487,22 +487,23 @@ jobs: runs-on: ubuntu-18.04 needs: [build_airgap] steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Get tags - id: get_tag - uses: ./actions/version-tag - - name: Copy assets uses: ./actions/copy-assets env: GITHUB_TOKEN: ${{ secrets.NIGHTLY_GH_PAT }} with: - srcReleaseTag: ${{ steps.get_tag.outputs.GIT_TAG }} + srcReleaseTag: ${{ env.GITHUB_REF_NAME }} dstReleaseTag: "v0.0.0-nightly" - regression-test: + - name: Get latest tag + id: get_latest_tag + uses: pozetroninc/github-action-get-latest-release@master + with: + repository: ${{ github.repository }} + excludes: prerelease, draft + + regression_test: + if: startsWith(github.ref, 'refs/tags/v') && endsWith(github.ref, '-nightly') name: Run regression testing runs-on: ubuntu-latest steps: @@ -512,6 +513,8 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.E2E_TESTIM_AWS_SECRET_ACCESS_KEY }} TF_VAR_testim_token: ${{ secrets.TESTIM_ACCESS_TOKEN }} E2E_GH_PAT: ${{ secrets.E2E_GH_PAT }} + version_tag_old: ${{ steps.get_latest_tag.outputs.release }} + version_tag_new: ${{ env.GITHUB_REF_NAME }} start_kgrid_test: runs-on: ubuntu-18.04