Skip to content

Commit

Permalink
build: build and publish test harness images in release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
  • Loading branch information
jan--f committed Aug 17, 2023
1 parent a66295f commit ce00557
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/osd-test-harness-publish/action.yaml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit ce00557

Please sign in to comment.