Skip to content

Commit

Permalink
Configure repo for deploying FTS Admin
Browse files Browse the repository at this point in the history
1. Build `hpc-ftsadmin` app instead of `hpc-cdm` in Dockerfile
2. Change ECR Docker repository to point to FTS Admin one
3. Remove all deployment environments to prevent automatic
deployments via creation of deployment on GitHub, that triggers
a Jenkins job through a webhook. Instead, deployment will be
done manually by providing dev environment image tag name to
Jenkins job manually
  • Loading branch information
Pl217 authored and seniorITdev committed Feb 29, 2024
1 parent a04d1df commit 9b0dd42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
24 changes: 2 additions & 22 deletions .github/workflow.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,9 @@
"commitSha": "HPC_ACTIONS_COMMIT_SHA",
"treeSha": "HPC_ACTIONS_TREE_SHA"
},
"repository": "public.ecr.aws/unocha/hpc-cdm",
"repository": "public.ecr.aws/unocha/hpc-ftsadmin",
"skipLogin": true
},
"ci": ["./.github/ci.sh"],
"mergebackLabels": ["mergeback"],
"deployments": {
"environments": [
{
"branch": "env/prod",
"environment": "prod"
},
{
"branch": "env/stage",
"environment": "stage"
},
{
"branch": "env/red.dev",
"environment": "reddev"
},
{
"branch": "env/blue.dev",
"environment": "bluedev"
}
]
}
"mergebackLabels": ["mergeback"]
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY . .
ARG ENVIRONMENT=production
RUN npm run remove-unneeded-deps && \
npm install && \
npm run build hpc-cdm -- --output-path=/srv/src/dist --configuration=$ENVIRONMENT
npm run build hpc-ftsadmin -- --output-path=/srv/src/dist --configuration=$ENVIRONMENT

FROM public.ecr.aws/unocha/nginx:stable-beagle

Expand Down

0 comments on commit 9b0dd42

Please sign in to comment.