File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -259,8 +259,9 @@ jobs:
259259 - name : build image
260260 run : make -j build/image/envbox
261261
262- - name : tag image
263- run : docker tag envbox ghcr.io/coder/envbox:latest
264-
265- - name : push image
266- run : docker push ghcr.io/coder/envbox:latest
262+ - name : Tag and push envbox-preview
263+ run : |
264+ VERSION=$(./scripts/version.sh)-dev-$(git rev-parse --short HEAD)
265+ BASE=ghcr.io/coder/envbox-preview
266+ docker tag envbox "${BASE}:${VERSION}"
267+ docker push "${BASE}:${VERSION}"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+ cd " $( dirname " ${BASH_SOURCE[0]} " ) "
5+
6+ last_tag=" $( git describe --tags --abbrev=0) "
7+ version=" $last_tag "
8+
9+ # Remove the "v" prefix.
10+ echo " ${version# v} "
You can’t perform that action at this time.
0 commit comments