From 9a59cae1549e94cd8a5258957225d7b1128c5974 Mon Sep 17 00:00:00 2001 From: krauthosting <69597449+krauthosting@users.noreply.github.com> Date: Wed, 16 Sep 2020 20:38:25 +0200 Subject: [PATCH 1/2] Prepend GitHub repo only on branch for gitlab.com --- entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index eb4bc84..e0ee752 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,7 +7,12 @@ POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT} git checkout "${GITHUB_REF:11}" -branch=${GITHUB_REPOSITORY}/$(git symbolic-ref --short HEAD) +if [ "$GITLAB_HOSTNAME" = "gitlab.com" ] +then + branch=${GITHUB_REPOSITORY}/$(git symbolic-ref --short HEAD) +else + branch=$(git symbolic-ref --short HEAD) +fi sh -c "git config --global credential.username $GITLAB_USERNAME" sh -c "git config --global core.askPass /cred-helper.sh" From 507d2018e47066bb8a71ad7f96f11634cbd02248 Mon Sep 17 00:00:00 2001 From: krauthosting <69597449+krauthosting@users.noreply.github.com> Date: Tue, 12 Oct 2021 15:25:40 +0200 Subject: [PATCH 2/2] Update Docker image for Let's Encrypt CA --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9219779..998e056 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM makocchi/alpine-git-curl-jq:latest +FROM krauthosting/ubi8-git-curl-jq:latest LABEL "com.github.actions.name"="Mirror to GitLab and run GitLab CI" LABEL "com.github.actions.description"="Automate mirroring of git commits to GitLab, trigger GitLab CI and post results back to GitHub"