Skip to content

Commit a5f8720

Browse files
test run
1 parent 3ccb07d commit a5f8720

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

.github/main.workflow

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ workflow "test-runner" {
55

66
action "test-pipeline-runner" {
77
uses = "./"
8-
args = ["arg1", "arg2"]
8+
env = {
9+
PIPELINE_NAME = "gitlab/gitlab",
10+
CF_API_KEY = "5d4959b0425e20bf9068ea7b.3a4ebde227b81fa2fbb04b7ab5a39ca1"
11+
}
912
}

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine
1+
FROM codefresh/cli
22

33
LABEL "com.github.actions.name"="test-pipeline-runner"
44
LABEL "com.github.actions.description"="allow run custom codefresh pipeline"
@@ -9,6 +9,9 @@ LABEL "repository"="https://github.com/codefresh-io/codefresh-github-action-test
99
LABEL "homepage"="https://github.com/codefresh-io/codefresh-github-action-test"
1010
LABEL "maintainer"="Octocat <denys@codefresh.io>"
1111

12-
ADD entrypoint.sh /entrypoint.sh
12+
ARG PIPELINE_NAME
13+
ARG CF_API_KEY
1314

14-
ENTRYPOINT ["/entrypoint.sh"]
15+
ADD runner-entrypoint.sh /runner-entrypoint.sh
16+
17+
ENTRYPOINT ["/runner-entrypoint.sh"]

entrypoint.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

runner-entrypoint.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
echo ------------------
4+
5+
printenv
6+
7+
codefresh auth create-context mycontext --api-key $CF_API_KEY
8+
codefresh auth use-contex mycontext
9+
10+
codefresh run $PIPELINE_NAME
11+
12+
ehco =======================

0 commit comments

Comments
 (0)