-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump node to 18 in dockerfile & add tag to image (#452)
Signed-off-by: David Huffman <[email protected]>
- Loading branch information
1 parent
a4381bc
commit b39cb5f
Showing
3 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ name: Docker | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
docker: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
#!/bin/bash | ||
IMAGE_BUILD_NAME=fabric-console:latest | ||
|
||
# Info about the build is saved in tags on the docker image | ||
GIT_TAG=$(git describe | grep -v -) | ||
GIT_TAG=$(git describe --tags) | ||
echo "Found tag $GIT_TAG" | ||
|
||
# Push the images | ||
echo "Pushing 'latest' image:" | ||
echo ${GITHUB_TOKEN} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin | ||
docker push ghcr.io/hyperledger-labs/fabric-console:latest | ||
|
||
# -n means if GIT_TAG's length is greater than 0 | ||
if [[ -n $GIT_TAG ]]; then | ||
echo "Pushing tagged image $GIT_TAG:" | ||
docker push ghcr.io/hyperledger-labs/fabric-console:${GIT_TAG} | ||
fi |