diff --git a/.github/osd-test-harness-publish/action.yaml b/.github/osd-test-harness-publish/action.yaml new file mode 100644 index 00000000..88f72470 --- /dev/null +++ b/.github/osd-test-harness-publish/action.yaml @@ -0,0 +1,40 @@ +name: 'Publish OSD test harness image' +description: 'Publishes the OSD test harness image' +inputs: + quay_login: + description: "Quay login" + required: true + quay_token: + description: "Quay token" + required: true + go-version: + description: "go version" + required: true +runs: + using: composite + steps: + - name: Setup Go environment + uses: actions/setup-go@v3 + with: + go-version: ${{ inputs.go-version }} + check-latest: true + cache: true + + - name: Install tools + uses: ./.github/tools-cache + + - name: Registry Login + uses: docker/login-action@v2 + with: + registry: quay.io + username: ${{ inputs.quay_login }} + password: ${{ inputs.quay_token }} + + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Build and publish test harness image + shell: bash + run: | + make osd-e2e-test-push diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 49dd2495..ac40c55d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -185,3 +185,13 @@ jobs: quay_login: ${{ secrets.QUAY_LOGIN }} quay_token: ${{ secrets.QUAY_TOKEN }} go-version: ${{ env.go-version }} + + - name: Publish test harness + uses: ./.github/osd-test-harness-publish + env: + IMAGE_BASE: ${{ secrets.IMAGE_BASE }} + VERSION: ${{ steps.version.outputs.version }} + with: + quay_login: ${{ secrets.QUAY_LOGIN }} + quay_token: ${{ secrets.QUAY_TOKEN }} + go-version: ${{ env.go-version }}