24
24
with :
25
25
ref : develop
26
26
token : ${{ secrets.BROADBOT_TOKEN }}
27
+ persist-credentials : false
27
28
- name : " Bump the tag to a new version"
28
29
id : bumperstep
29
30
uses :
broadinstitute/datarepo-actions/actions/[email protected]
@@ -44,14 +45,15 @@ jobs:
44
45
uses : actions/checkout@v3
45
46
with :
46
47
ref : ${{ needs.bump_version.outputs.api_image_tag }}
48
+ persist-credentials : false
47
49
- name : Set up JDK
48
50
uses : actions/setup-java@v3
49
51
with :
50
52
java-version : ' 17'
51
53
distribution : ' temurin'
52
54
cache : ' gradle'
53
55
- name : " Publish to Artifactory"
54
- uses : gradle/gradle-build-action@v2
56
+ uses : gradle/gradle-build-action@v2.12.0
55
57
with :
56
58
arguments : ' :datarepo-client:artifactoryPublish'
57
59
env :
68
70
uses : actions/checkout@v3
69
71
with :
70
72
ref : ${{ needs.bump_version.outputs.api_image_tag }}
73
+ persist-credentials : false
71
74
- name : Set up JDK 17
72
75
uses : actions/setup-java@v4
73
76
with :
@@ -80,10 +83,10 @@ jobs:
80
83
base64 --decode <<< ${{ secrets.SA_B64_CREDENTIALS }} > ${GOOGLE_APPLICATION_CREDENTIALS}
81
84
jq -r .private_key ${GOOGLE_APPLICATION_CREDENTIALS} > ${GOOGLE_SA_CERT}
82
85
chmod 644 ${GOOGLE_SA_CERT}
83
- # Set tag to semver version
84
- export GCR_TAG=${{ needs.bump_version.outputs.api_image_tag }}
85
86
# Build, tag and push the image
86
87
./gradlew jib
88
+ env :
89
+ GCR_TAG : ${{ needs.bump_version.outputs.api_image_tag }}
87
90
88
91
cherry_pick_image_to_production_gcr :
89
92
needs : [bump_version, build_container_and_publish]
0 commit comments