diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 7832c14..a49d06c 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -79,6 +79,9 @@ jobs: [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') # Push to the remote repo + # This assumes a higher version will always be tagged later echo "Publishing $IMAGE_ID:$VERSION" docker tag $IMAGE_NAME $IMAGE_ID:$VERSION - docker push $IMAGE_ID:$VERSION \ No newline at end of file + docker tag $IMAGE_NAME $IMAGE_ID:latest + docker push $IMAGE_ID:$VERSION + docker push $IMAGE_ID:latest diff --git a/readme.MD b/readme.MD index 6402fce..ff29849 100644 --- a/readme.MD +++ b/readme.MD @@ -47,14 +47,14 @@ docker run -p 8123:8123 tasks_emulator -host 0.0.0.0 -port 8123 -queue projects/ ### Docker image Or even easier - pull and run it directly from GitHub Container Registry: ``` -docker run ghcr.io/aertje/cloud-tasks-emulator:1.0 +docker run ghcr.io/aertje/cloud-tasks-emulator:latest ``` ### Docker Compose If you are planning on using docker-compose the above configuration translates to : ``` gcloud-tasks-emulator: - image: ghcr.io/aertje/cloud-tasks-emulator:1.0 + image: ghcr.io/aertje/cloud-tasks-emulator:latest command: -host 0.0.0.0 -port 8123 -queue "projects/dev/locations/here/queues/anotherq" ports: - "${TASKS_PORT:-8123}:8123"