Skip to content

Commit

Permalink
Added readme. Refined build and updated version number
Browse files Browse the repository at this point in the history
  • Loading branch information
ElusiveMind committed Mar 20, 2022
1 parent 903ecbc commit 024911a
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 3 deletions.
17 changes: 15 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# ProboCI
# https://www.probo.ci
#
# Copyright 2022 ProboCI, LLC

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM node:16

Expand Down
38 changes: 38 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

echo ""
echo "-----------------------------------------------------"
echo "Building Probo GitLab Handler Image"
echo "-----------------------------------------------------"

help() {
echo "build.sh - script to build the container manager/github handler image"
echo ""
echo "Usage:"
echo "./build.sh <repository_name> <tag>"
echo ""
echo "Example: To build an image tagged 'dev' for DockerHub on my account:"
echo "./build.sh mbagnall dev\n"
echo ""
echo "Example: To build an image tagged 'dev' on a private registry with"
echo "the 'probo' namespace:"
echo "./build.sh docker.example.com/probo dev"
echo ""
exit 1;
}

if [ -n "$2" ]; then
export tag=$2
else
help
fi

if [ -z "$1" ]; then
help
fi

echo -n "Hash: "
docker build . -q -t $1/gitlab-handler:$tag
echo -n "Repo: "
docker push -q $1/gitlab-handler:$tag
echo ""
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "probo-gitlab-handler",
"version": "3.0.0",
"version": "3.0.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 024911a

Please sign in to comment.