diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index cd6dcbbc06f..80457d749e4 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -15,7 +15,9 @@ defaults: env: APP_NAME: "k6" - DOCKER_IMAGE_ID: "loadimpact/k6" # TODO change if we move to a new docker org + # We'll push to two DockerHub repos at once; `loadimpact/k6` repo is required for backwards compatibility + LI_DOCKER_IMAGE_ID: "loadimpact/k6" + DOCKER_IMAGE_ID: "grafana/k6" GHCR_IMAGE_ID: ${{ github.repository }} jobs: @@ -287,17 +289,21 @@ jobs: docker push "ghcr.io/$GHCR_IMAGE_ID:latest" fi - echo "Publish Docker ($DOCKER_IMAGE_ID:$VERSION)" + echo "Publish Docker ($DOCKER_IMAGE_ID:$VERSION) and ($LI_DOCKER_IMAGE_ID:$VERSION)" # Log into Docker Hub Registry echo "${{ secrets.DOCKER_PASS }}" | docker login -u "${{ secrets.DOCKER_USER }}" --password-stdin docker tag "$DOCKER_IMAGE_ID" "$DOCKER_IMAGE_ID:$VERSION" + docker tag "$DOCKER_IMAGE_ID" "$LI_DOCKER_IMAGE_ID:$VERSION" docker push "$DOCKER_IMAGE_ID:$VERSION" + docker push "$LI_DOCKER_IMAGE_ID:$VERSION" # We also want to tag the latest stable version as latest if [[ "$VERSION" != "master" ]] && [[ ! "$VERSION" =~ (RC|rc) ]]; then echo 'Publish Docker (latest)' docker tag "$DOCKER_IMAGE_ID" "$DOCKER_IMAGE_ID:latest" + docker tag "$DOCKER_IMAGE_ID" "$LI_DOCKER_IMAGE_ID:latest" docker push "$DOCKER_IMAGE_ID:latest" + docker push "$LI_DOCKER_IMAGE_ID:latest" fi package-windows: diff --git a/Makefile b/Makefile index c19b097b709..be11de32187 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,6 @@ tests : check : ci-like-lint tests container: - docker build --rm --pull --no-cache -t loadimpact/k6 . + docker build --rm --pull --no-cache -t grafana/k6 . .PHONY: build format ci-like-lint lint tests check container diff --git a/README.md b/README.md index 0f7095dba8d..f1500edbb2f 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ sudo rm /etc/yum.repos.d/bintray-loadimpact-rpm.repo ### Docker ```bash -docker pull loadimpact/k6 +docker pull grafana/k6 ``` ### Pre-built binaries & other platforms @@ -162,7 +162,7 @@ export default function() { The script details and how we can extend and configure it will be explained below, but for now, simply save the above snippet as a `script.js` file somewhere on your system. Assuming that you've [installed k6](#install) correctly, on Linux and Mac, you can run the saved script by executing `k6 run script.js` from the same folder. For Windows, the command is almost the same - `k6.exe run script.js`. -If you decide to use the [k6 docker image](https://hub.docker.com/r/loadimpact/k6/), the command will be slightly different. Instead of passing the script filename to k6, a dash is used to instruct k6 to read the script contents directly via the standard input. This allows us to avoid messing with docker volumes for such a simple single-file script, greatly simplifying the docker command: `docker run -i loadimpact/k6 run -