File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
- # Moving to ubuntu instead of debian to solve high vulnerabilities
2
- FROM ubuntu:jammy-20221101
1
+ # Moving to ubuntu instead of debian to solve high vulnerabilities
2
+ FROM ubuntu:jammy
3
3
4
4
RUN apt-get update -y && \
5
5
apt-get upgrade -y && \
6
- apt-get install git bash openssl busybox -y && \
6
+ apt-get install git bash openssl busybox jq -y && \
7
7
ln -s /bin/busybox /usr/bin/[[
8
8
9
9
# Add ssh record on which ssh key to use
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ kind: step-type
2
2
version : ' 1.0'
3
3
metadata :
4
4
name : git-commit
5
- version : 0.1.3
5
+ version : 0.1.4
6
6
isPublic : true
7
7
description : Commit and push changes to repository
8
8
icon :
@@ -165,7 +165,7 @@ spec:
165
165
166
166
commit_and_push :
167
167
title : " Commit and push"
168
- image : codefreshplugins/git-commit:0.1.3
168
+ image : codefreshplugins/git-commit:0.1.4
169
169
shell : bash
170
170
environment :
171
171
- REPO=${{repo}}
@@ -198,7 +198,8 @@ spec:
198
198
- git commit ${ALLOW_EMPTY} -m "${COMMIT_MESSAGE}"
199
199
- git status
200
200
- |-
201
- REPO_URL="https://$GIT_ACCESS_TOKEN_USER:$GIT_ACCESS_TOKEN@$GIT_FQDN/$REPO.git"
201
+ ENCODED_GIT_ACCESS_TOKEN=$(echo -n "${GIT_ACCESS_TOKEN}" | jq -sRr @uri)
202
+ REPO_URL="https://$GIT_ACCESS_TOKEN_USER:$ENCODED_GIT_ACCESS_TOKEN@$GIT_FQDN/$REPO.git"
202
203
if [ "$USE_SSH" = "true" ]; then
203
204
[ -z "$PRIVATE_KEY" ] && (echo "missing PRIVATE_KEY var" | tee /dev/stderr) && exit 1
204
205
echo ${PRIVATE_KEY:1:-1} | sed 's/\\n/\n/g' > ~/.ssh/codefresh
You can’t perform that action at this time.
0 commit comments