File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2828 image : docker
2929 script : |
3030 #!/bin/sh
31- cp -R git-source/* repo
31+ cp -R git-source/. repo
3232 docker build -f $(inputs.params.pathToDockerFile) -t $(outputs.resources.builtImage.url) $(inputs.params.pathToContext)
3333 volumeMounts :
3434 - name : docker-socket
Original file line number Diff line number Diff line change 3737 - name : gitconfig
3838 mountPath : /root
3939 script : |
40- #!/bin/sh
40+ #!/bin/sh -x
4141 cp /root/gitconfig $HOME/.gitconfig
42- services promote --from $(params.from) --to $(params.to) --service $(params.service)
42+ cd $(params.from)
43+ gitCommit=$(git rev-parse --short HEAD)
44+ services promote --from $(params.from) --to $(params.to) --service $(params.service) --commit-message "Publish $(params.service) commit $gitCommit"
4345 env :
4446 - name : GITHUB_TOKEN
4547 valueFrom :
You can’t perform that action at this time.
0 commit comments