Skip to content

Commit

Permalink
OPHYK-212 Fix passing GitHub Packages credentials to build
Browse files Browse the repository at this point in the history
  • Loading branch information
rce committed Dec 3, 2024
1 parent 2d62e2b commit 1a0b3be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM gradle:8.11-jdk21-corretto AS build
WORKDIR /app

COPY github-packages-gradle.properties /root/.gradle/gradle.properties
COPY github-packages-gradle.properties /opt/gradle/gradle.properties
COPY ytj-client ./ytj-client
COPY organisaatio-api ./organisaatio-api
COPY organisaatio-service ./organisaatio-service
Expand Down
6 changes: 3 additions & 3 deletions infra/src/cdk-app-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ class ContinuousDeploymentPipelineStack extends cdk.Stack {
type: codebuild.BuildEnvironmentVariableType.PARAMETER_STORE,
value: `/env/${env}/slack-notifications-channel-webhook`,
},
GRADLE_GITHUB_PACKAGES_PROPERTIES: {
GITHUB_PACKAGES_GRADLE_PROPERTIES: {
type: codebuild.BuildEnvironmentVariableType.PARAMETER_STORE,
value: `/gradle/github-packages-gradle-properties`,
value: "/gradle/github-packages-gradle-properties",
},
},
buildSpec: codebuild.BuildSpec.fromObject({
Expand All @@ -173,7 +173,7 @@ class ContinuousDeploymentPipelineStack extends cdk.Stack {
commands: [
"sudo yum install -y perl-Digest-SHA", // for shasum command
`git checkout ${tag}`,
"echo $GRADLE_GITHUB_PACKAGES_PROPERTIES > github-packages-gradle.properties",
"echo $GITHUB_PACKAGES_GRADLE_PROPERTIES | base64 -d > github-packages-gradle.properties"
],
},
build: {
Expand Down

0 comments on commit 1a0b3be

Please sign in to comment.