Skip to content

Commit 3febc3a

Browse files
committed
Tag main branch builds with latest
1 parent 9ec6f44 commit 3febc3a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/elixir.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ jobs:
5555
--cache-from $branch_tag \
5656
.
5757
58+
if [ "${branch}" = "main" ]; then
59+
latest_tag="${image}:latest"
60+
docker tag $sha_tag $latest_tag
61+
docker push $latest_tag
62+
fi
63+
5864
build_devcontainer:
5965
name: Build devcontainer
6066
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)