Skip to content

Commit

Permalink
bump node to 18 in dockerfile & add tag to image (#452)
Browse files Browse the repository at this point in the history
Signed-off-by: David Huffman <[email protected]>
  • Loading branch information
dshuffma-ibm authored Apr 14, 2023
1 parent a4381bc commit b39cb5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Docker

on:
push:
branches:
- main
tags:
- '*'

jobs:
docker:
Expand Down
4 changes: 2 additions & 2 deletions docker/console/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi8/nodejs-16 as client
FROM registry.access.redhat.com/ubi8/nodejs-18 as client
ENV STITCH_DIR=/home/stitch
ENV APOLLO_DIR=/home/apollo

Expand Down Expand Up @@ -57,7 +57,7 @@ RUN ls -l $APOLLO_DIR/build
# ----------------------------
# ------- Server Setup -------
# ----------------------------
FROM registry.access.redhat.com/ubi8/nodejs-16 as server
FROM registry.access.redhat.com/ubi8/nodejs-18 as server
ENV STITCH_DIR=/home/stitch
ENV APOLLO_DIR=/home/apollo
ENV SERVER_HOME=/home/athena
Expand Down
9 changes: 8 additions & 1 deletion docker/publish_image.sh
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

0 comments on commit b39cb5f

Please sign in to comment.