Skip to content

Commit

Permalink
Re-correcting tag names
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Dec 16, 2024
1 parent 36af0d2 commit 0ee6b71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions twostep-container-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ CMD ["bash"]
[`Containerfile`](examples/Containerfile)

```Containerfile
ARG TAG=latest
ARG TAG=dependencies-latest

FROM ghcr.io/cdcgov/cfa-actions-dependencies:${TAG}
FROM ghcr.io/cdcgov/cfa-actions:${TAG}

COPY twostep-container-build/example/Containerfile /app/.

CMD ["bash"]
```

Notice the `TAG` argument which is passed to the second container file. During runs of the action, `TAG` takes the value of the branch name or `latest` if the branch is the main branch.
Notice the `TAG` argument which is passed to the second container file. During runs of the action, `TAG` takes the value of the `dependencies-[branch name]` or `dependencies-latest` if the branch is the main branch.
4 changes: 2 additions & 2 deletions twostep-container-build/examples/Containerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TAG=latest
ARG TAG=dependencies-latest
ARG GH_SHA=undefined

FROM ghcr.io/cdcgov/cfa-actions-dependencies:${TAG}
FROM ghcr.io/cdcgov/cfa-actions:${TAG}

LABEL GH_SHA=${GH_SHA}
COPY twostep-container-build/examples/Containerfile /app/.
Expand Down

0 comments on commit 0ee6b71

Please sign in to comment.