Skip to content

Commit

Permalink
Publish to :latest version on GHCR when tagging a new version
Browse files Browse the repository at this point in the history
  • Loading branch information
aertje committed Apr 19, 2021
1 parent 8df7d04 commit 4dfd49e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
docker tag $IMAGE_NAME $IMAGE_ID:latest
docker push $IMAGE_ID:$VERSION
docker push $IMAGE_ID:latest
4 changes: 2 additions & 2 deletions readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4dfd49e

Please sign in to comment.