Skip to content

Commit

Permalink
use go 1.22 for k6 image build (#6244)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakoush authored Feb 6, 2025
1 parent 5429925 commit 2edd278
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,49 @@ jobs:
run: make -C components/tls test
- name: test-components-kafka
run: make -C components/kafka test

# k6 latest (0.14.0 at the time of writing) uses go 1.22
docker-k6:
runs-on: ubuntu-latest
if: github.repository == 'SeldonIO/seldon-core' # Do not run this on forks.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-haskell: 'true'
remove-android: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
overprovision-lvm: 'true'
swap-size-mb: 1024

- name: Checkout Git Commit
uses: actions/checkout@v4

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set default docker tag for builds from master
id: docker-tag
run: |
USER_INPUT="${{ github.event.inputs.docker-tag }}"
echo "value=${USER_INPUT:-latest}" >> $GITHUB_OUTPUT
- name: Echo the tags that will be used to push images
run: echo "Will push images with tag ${{ steps.docker-tag.outputs.value }}"

- name: Push Docker Image for k6 Load Testing
working-directory: ./tests/k6
run: CUSTOM_IMAGE_TAG=${{ steps.docker-tag.outputs.value }} make docker-build docker-push

docker:
needs: test
Expand Down Expand Up @@ -83,6 +126,3 @@ jobs:
working-directory: ./hodometer
run: BUILD_VERSION=${{ steps.docker-tag.outputs.value }} IMAGE_TAG=${{ steps.docker-tag.outputs.value }} make build-hodometer-docker push-hodometer-docker

- name: Push Docker Image for k6 Load Testing
working-directory: ./tests/k6
run: CUSTOM_IMAGE_TAG=${{ steps.docker-tag.outputs.value }} make docker-build docker-push

0 comments on commit 2edd278

Please sign in to comment.