Skip to content

Cr 23090 #693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions incubating/git-commit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Moving to ubuntu instead of debian to solve high vulnerabilities
# Moving to ubuntu instead of debian to solve high vulnerabilities
FROM ubuntu:jammy-20221101

RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install git bash openssl busybox -y && \
apt-get install git bash openssl busybox jq -y && \
ln -s /bin/busybox /usr/bin/[[

# Add ssh record on which ssh key to use
Expand Down
7 changes: 4 additions & 3 deletions incubating/git-commit/step.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kind: step-type
version: '1.0'
metadata:
name: git-commit
version: 0.1.3
version: 0.1.4
isPublic: true
description: Commit and push changes to repository
icon:
Expand Down Expand Up @@ -165,7 +165,7 @@ spec:

commit_and_push:
title: "Commit and push"
image: codefreshplugins/git-commit:0.1.3
image: codefreshplugins/git-commit:0.1.4
shell: bash
environment:
- REPO=${{repo}}
Expand Down Expand Up @@ -198,7 +198,8 @@ spec:
- git commit ${ALLOW_EMPTY} -m "${COMMIT_MESSAGE}"
- git status
- |-
REPO_URL="https://$GIT_ACCESS_TOKEN_USER:$GIT_ACCESS_TOKEN@$GIT_FQDN/$REPO.git"
ENCODED_GIT_ACCESS_TOKEN=$(echo -n "${GIT_ACCESS_TOKEN}" | jq -sRr @uri)
REPO_URL="https://$GIT_ACCESS_TOKEN_USER:$ENCODED_GIT_ACCESS_TOKEN@$GIT_FQDN/$REPO.git"
if [ "$USE_SSH" = "true" ]; then
[ -z "$PRIVATE_KEY" ] && (echo "missing PRIVATE_KEY var" | tee /dev/stderr) && exit 1
echo ${PRIVATE_KEY:1:-1} | sed 's/\\n/\n/g' > ~/.ssh/codefresh
Expand Down
Loading