Skip to content

Commit

Permalink
Fix image tag in kuttl multi-versions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olim7t committed Feb 21, 2023
1 parent a5073cc commit 6306898
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/version_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
build_image:
name: Build image
runs-on: ubuntu-latest
outputs:
image_tag: ${{ steps.parse_image_tag.outputs.image_tag }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand All @@ -28,6 +30,9 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
if: github.event_name != 'pull_request'
- name: Parse image version
id: parse_image_tag
run: echo "image_tag=$(yq eval '.images[0].newTag' config/deployments/default/kustomization.yaml)" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker image
Expand All @@ -37,7 +42,7 @@ jobs:
file: Dockerfile
context: .
push: false
tags: k8ssandra/k8ssandra-operator:latest
tags: k8ssandra/k8ssandra-operator:latest,k8ssandra/k8ssandra-operator:${{ steps.parse_image_tag.outputs.image_tag }}
platforms: linux/amd64
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
Expand Down Expand Up @@ -98,7 +103,7 @@ jobs:
run: |
kind create cluster --name k8ssandra-0 --config ./test/kuttl/config/kind/w3k${{ matrix.k8s_version }}.yaml
make cert-manager
make IMG="k8ssandra/k8ssandra-operator:latest" kind-load-image
make IMG="k8ssandra/k8ssandra-operator:${{ needs.build_image.outputs.image_tag }}" kind-load-image
- name: Run kuttl test
run: |
# We are running tests against k8s 1.21
Expand Down

0 comments on commit 6306898

Please sign in to comment.