Skip to content

Commit

Permalink
FDN-1638: Adding apibuilder token in image (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuupadhyay101 authored Nov 1, 2023
1 parent 86a8fea commit 9c5f6c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile-play-builder-17-jammy
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ COPY --from=builder /root/go/bin/dev /usr/bin/dev

COPY --from=builder /root/apibuilder-cli /opt/apibuilder-cli
RUN mkdir -p $HOME/.apibuilder && touch $HOME/.apibuilder/config
RUN echo "token=${APIBUILDER_TOKEN}" >> $HOME/.apibuilder/config

# Update PATH with apibuilder

Expand Down
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ pipeline {
steps {
container('kaniko') {
script {
withCredentials([usernamePassword(credentialsId: 'jenkins-x-github', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME'), string(credentialsId: 'jenkins-hub-api-token', variable: 'GITHUB_TOKEN')]) {
withCredentials([usernamePassword(credentialsId: 'jenkins-x-github', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME'), string(credentialsId: 'jenkins-hub-api-token', variable: 'GITHUB_TOKEN'), string(credentialsId: 'jenkins-apibuilder-token', variable: 'APIBUILDER_TOKEN') ]) {
semver = VERSION.printable()
env.JAVAVERSION = "17"
env.SBT_VERSION = "1.9.6"
Expand All @@ -375,6 +375,7 @@ pipeline {
--build-arg GIT_PASSWORD=$GIT_PASSWORD \
--build-arg GIT_USERNAME=$GIT_USERNAME \
--build-arg GITHUB_TOKEN=$GITHUB_TOKEN \
--build-arg APIBUILDER_TOKEN=$APIBUILDER_TOKEN \
--destination flowdocker/play_builder:$semver-java${JAVAVERSION}-jammy \
--destination flowdocker/play_builder:latest-java${JAVAVERSION}-jammy
"""
Expand Down

0 comments on commit 9c5f6c0

Please sign in to comment.