-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
41 lines (38 loc) · 1.04 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'ci-java'
description: 'Build java project'
inputs:
project:
description: 'Name of project to push to'
required: true
zone:
description: 'Name of zone were running in'
required: true
gcloud_disable_prompt:
description: 'Turn of prompts in gcloud'
required: false
default: "1"
jdk_version:
description: "Which jdk version should we use?"
required: true
default: "1.11"
service_account:
description: "Which service account should we use"
required: true
outputs:
random-number:
description: "Random number"
value: ${{ steps.random-number-generator.outputs.random-id }}
runs:
using: "composite"
steps:
- id: random-number-generator
run: echo "::set-output name=random-id::$(echo $RANDOM)"
shell: bash
- id: printenv
run: env
shell: bash
- name: Create release IMAGE name
shell: bash
run: |
export IMAGE_NAME_FROM_REPO="$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f2)"
echo "::set-env name=IMAGE::$IMAGE_NAME_FROM_REPO"