Skip to content

Adds GCR example #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2020
Merged

Adds GCR example #31

merged 2 commits into from
Apr 23, 2020

Conversation

andrew-waters
Copy link
Contributor

Adds an example of using the action with GCR

Signed-off-by: Andrew Waters <waters@me.com>
```

The following will build the root Dockerfile, tag the image as `myorg/myrepository:latest`, log in to Google Container Registry using GitHub secrets (where `DOCKER_PASSWORD` is a [JSON key](https://cloud.google.com/container-registry/docs/advanced-authentication#json-key)), and push the image to the CGR repository `myorg/myrepository`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe unless you specific tags: latest or tag_with_ref: true then the image will not actually be tagged as anything. This is something that should probably be fixed as defaulting to {repository}:latest would be the logical functionality. As it is though could you please correct the example

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot. I've updated it now

Signed-off-by: Andrew Waters <waters@me.com>
Copy link
Contributor

@zappy-shu zappy-shu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zappy-shu zappy-shu merged commit 3ff8147 into docker:master Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants