Skip to content

Commit

Permalink
misc: template-schema: allow json_schema property in step + refactor …
Browse files Browse the repository at this point in the history
…Dockerfile-child

Signed-off-by: Romain Beuque <[email protected]>
  • Loading branch information
rbeuque74 committed Mar 18, 2020
1 parent a3139f7 commit e2b89be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions hack/Dockerfile-child
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM ovhcom/utask:DOCKER_TAG AS builder
ARG UTASK_VERSION=DOCKER_TAG
FROM ovhcom/utask:${UTASK_VERSION} AS builder

COPY . /go/src/github.com/ovh/utask
WORKDIR /go/src/github.com/ovh/utask
RUN make

FROM ovhcom/utask:DOCKER_TAG
FROM ovhcom/utask:${UTASK_VERSION}

COPY templates /app/templates
COPY --from=builder /go/src/github.com/ovh/utask/plugins /app/plugins
Expand Down
2 changes: 1 addition & 1 deletion hack/generate-install-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi
version=`git describe --tags $(git rev-list --tags --max-count=1)`

write_block() {
echo "cat <<EOF >$1" >> $dst
echo "cat <<'EOF' >$1" >> $dst
sed "s/DOCKER_TAG/$version/" $2 >> $dst
echo "EOF" >> $dst
echo "" >> $dst
Expand Down
4 changes: 4 additions & 0 deletions hack/template-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
"foreach": {
"type": "string",
"description": "Elements on which the step will loop"
},
"json_schema": {
"type": "object",
"description": "Elements on which the step will loop"
}
}
},
Expand Down

0 comments on commit e2b89be

Please sign in to comment.