Skip to content

Commit

Permalink
run e2e tests as last step of build
Browse files Browse the repository at this point in the history
  • Loading branch information
senthilrch committed Oct 21, 2022
1 parent fdcbe28 commit 317b1df
Showing 1 changed file with 6 additions and 68 deletions.
74 changes: 6 additions & 68 deletions .github/workflows/build-kube-fledged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,74 +170,12 @@ jobs:
push: ${{ inputs.push_image }}
tags: ${{ inputs.operator_image_repo }}:${{ inputs.release_version }},${{ inputs.operator_image_repo }}:latest

e2e_test_kube_fledged:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.golang_version }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build kubefledged-controller image
uses: docker/build-push-action@v2
with:
context: .
file: ${{ inputs.dockerfile_controller }}
build-args: |
ALPINE_VERSION=${{ inputs.alpine_version }}
GOLANG_VERSION=${{ inputs.golang_version }}
platforms: linux/amd64
push: false
load: true
tags: ${{ inputs.controller_image_repo }}:${{ inputs.release_version }}

- name: Build kubefledged-webhook-server image
uses: docker/build-push-action@v2
with:
context: .
file: ${{ inputs.dockerfile_webhook_server }}
build-args: |
ALPINE_VERSION=${{ inputs.alpine_version }}
GOLANG_VERSION=${{ inputs.golang_version }}
platforms: linux/amd64
push: false
load: true
tags: ${{ inputs.webhook_server_image_repo }}:${{ inputs.release_version }}

- name: Build kubefledged-cri-client image
uses: docker/build-push-action@v2
with:
context: .
file: ${{ inputs.dockerfile_cri_client }}
build-args: |
ALPINE_VERSION=${{ inputs.alpine_version }}
CRICTL_VERSION=${{ inputs.crictl_version }}
DOCKER_VERSION=${{ inputs.docker_version }}
platforms: linux/amd64
push: false
load: true
tags: ${{ inputs.crictl_image_repo }}:${{ inputs.release_version }}

- name: Build kubefledged-operator image
uses: docker/build-push-action@v2
with:
context: ./deploy/kubefledged-operator
file: ${{ inputs.dockerfile_operator }}
build-args: |
OPERATORSDK_VERSION=${{ inputs.operatorsdk_version }}
platforms: linux/amd64
push: false
load: true
tags: ${{ inputs.operator_image_repo }}:${{ inputs.release_version }}

- name: E2e test
env:
IMAGE_TAG: ${{ inputs.release_version }}
run: make e2e-test

run: |
docker pull ${{ inputs.controller_image_repo }}:${{ inputs.release_version }}
docker pull ${{ inputs.webhook_server_image_repo }}:${{ inputs.release_version }}
docker pull ${{ inputs.crictl_image_repo }}:${{ inputs.release_version }}
docker pull ${{ inputs.operator_image_repo }}:${{ inputs.release_version }}
go test -v ./e2etest

0 comments on commit 317b1df

Please sign in to comment.