Skip to content

Commit

Permalink
Merge pull request #354 from crazy-max/docker-metadata
Browse files Browse the repository at this point in the history
Update examples with `docker/metadata-action`
  • Loading branch information
crazy-max committed May 10, 2021
2 parents 17822e4 + 3a090ce commit 8e1d874
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Expand Up @@ -59,7 +59,7 @@ jobs:
-
name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v3
with:
images: ${{ matrix.slug }}
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
-
name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v3
with:
images: ${{ env.DOCKER_IMAGE }}
tags: |
Expand Down
4 changes: 2 additions & 2 deletions docs/advanced/tags-labels.md
Expand Up @@ -2,7 +2,7 @@

If you come from [`v1`](https://github.com/docker/build-push-action/tree/releases/v1#readme) and want an
"automatic" tag management and [OCI Image Format Specification](https://github.com/opencontainers/image-spec/blob/master/annotations.md)
for labels, you can do it in a dedicated step. The following workflow will use the [Docker meta action](https://github.com/crazy-max/ghaction-docker-meta)
for labels, you can do it in a dedicated step. The following workflow will use the [Docker metadata action](https://github.com/docker/metadata-action)
to handle tags and labels based on GitHub actions events and Git metadata.

```yaml
Expand Down Expand Up @@ -30,7 +30,7 @@ jobs:
-
name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
Expand Down

0 comments on commit 8e1d874

Please sign in to comment.