File tree Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,8 @@ workflow "test-runner" {
55
66action "test-pipeline-runner" {
77 uses = " ./"
8- args = [" arg1" , " arg2" ]
8+ env = {
9+ PIPELINE_NAME = " gitlab/gitlab" ,
10+ CF_API_KEY = " 5d4959b0425e20bf9068ea7b.3a4ebde227b81fa2fbb04b7ab5a39ca1"
11+ }
912}
Original file line number Diff line number Diff line change 1- FROM alpine
1+ FROM codefresh/cli
22
33LABEL "com.github.actions.name" ="test-pipeline-runner"
44LABEL "com.github.actions.description" ="allow run custom codefresh pipeline"
@@ -9,6 +9,9 @@ LABEL "repository"="https://github.com/codefresh-io/codefresh-github-action-test
99LABEL "homepage" ="https://github.com/codefresh-io/codefresh-github-action-test"
1010LABEL "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" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 =======================
You can’t perform that action at this time.
0 commit comments