Skip to content

Commit

Permalink
added -l before labels
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth-khatsuriya committed Aug 17, 2021
1 parent 2542a00 commit 13b44b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ RUN curl -o kustomize.tar.gz -L https://github.com/kubernetes-sigs/kustomize/rel
COPY entrypoint.sh /entrypoint.sh

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["bash","/entrypoint.sh"]
ENTRYPOINT ["bash","-x","/entrypoint.sh"]
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ########################################################################

RANDOM_STRING=`head -3 /dev/urandom | tr -cd '[:lower:]' | cut -c -4`
echo 'RANDOM_STRING: ${RANDOM_STRING}'
JOB_NAME="$5-$RANDOM_STRING"

WORKFLOW_NAME=`argo submit -o json --from wftmpl/$1 -n $2 -l workflows.argoproj.io/workflow-template=$1 \
-p ci-repository-url="[email protected]:${GITHUB_REPOSITORY}.git" -p ci-commit-sha=${GITHUB_SHA} -p run-destroy=$3 \
-p addon-url="$4" -p job-name=${JOB_NAME} -p splunk-version=$6 -p test-type=$7 -p test-args="$8" $9 | jq -r .metadata.name`
-p addon-url="$4" -p job-name=${JOB_NAME} -p splunk-version=$6 -p test-type=$7 -p test-args="$8" -l="$9" | jq -r .metadata.name`
echo "After argo submit $?"
echo 'WORKFLOW_NAME:' ${WORKFLOW_NAME}
echo "::set-output name=workflow-name::$(echo $WORKFLOW_NAME)"
Expand Down

0 comments on commit 13b44b7

Please sign in to comment.