Skip to content

Commit 6627410

Browse files
support git actions input env var (#15)
Co-authored-by: saffi <[email protected]>
1 parent 8c19c7f commit 6627410

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

action.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,10 @@ inputs:
5353
description: "Codefresh API KEY"
5454
required: true
5555
runs:
56-
using: 'docker'
57-
image: Dockerfile
56+
using: "composite"
57+
steps:
58+
- shell: bash
59+
run: |
60+
VER=$(cat service.yaml | grep version | cut -d ':' -f 2 | tr -d ' ')
61+
env>cf_env
62+
docker run --env-file=cf_env quay.io/codefresh/csdp-report-image:$VER

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
name: csdp-report-image
2-
version: 0.0.19
2+
version: 0.0.20

0 commit comments

Comments
 (0)