Skip to content

Commit

Permalink
Merge pull request #4344 from cloud-gov/chore-feature-flag-build-task
Browse files Browse the repository at this point in the history
chore: reimplement build task feature flag handling
  • Loading branch information
drewbo authored Dec 21, 2023
2 parents b8dc8e7 + 3e964c0 commit 1262ca6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ci/pipeline-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
APP_HOSTNAME: https://((((deploy-env))-pages-domain))
NODE_ENV: development
PROXY_DOMAIN: sites.((((deploy-env))-pages-domain))
FEATURE_BUILD_TASKS: true
FEATURE_BUILD_TASKS: 'active'

- task: deploy-api
file: src/ci/partials/deploy.yml
Expand Down
2 changes: 1 addition & 1 deletion ci/pipeline-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
params:
APP_HOSTNAME: https://((((deploy-env))-pages-domain))
PROXY_DOMAIN: sites.((((deploy-env))-pages-domain))
FEATURE_BUILD_TASKS: false
FEATURE_BUILD_TASKS: 'inactive'


- task: deploy-api
Expand Down
2 changes: 1 addition & 1 deletion ci/pipeline-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:
params:
APP_HOSTNAME: https://((((deploy-env))-pages-domain))
PROXY_DOMAIN: sites.((((deploy-env))-pages-domain))
FEATURE_BUILD_TASKS: true
FEATURE_BUILD_TASKS: 'active'


- task: deploy-api
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
DOMAIN: localhost:1337
FEATURE_AUTH_GITHUB: 'true'
FEATURE_AUTH_UAA: 'true'
FEATURE_BUILD_TASKS: 'true'
FEATURE_BUILD_TASKS: 'active'
PORT: 1337
PRODUCT: pages
UAA_HOST: http://localhost:9000
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/site/siteBuildLogs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const SiteBuildLogs = () => {
<CommitSummary buildId={buildId} />
<div className="log-tools">
<ul className="usa-unstyled-list">
{(process.env.FEATURE_BUILD_TASKS) && (
{(process.env.FEATURE_BUILD_TASKS === 'active') && (
<li><Link className="usa-button usa-button-secondary" to="./../scans">View scan results</Link></li>
)}
<li><DownloadBuildLogsButton buildId={buildId} buildLogsData={logs} /></li>
Expand Down
2 changes: 1 addition & 1 deletion frontend/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default (
<Route path="custom-domains/new" element={<NewCustomDomain />} />
<Route path="custom-domains/:domainId/edit" element={<EditCustomDomain />} />
<Route path="builds/:buildId/logs" element={<SiteBuildLogs />} />
{(process.env.FEATURE_BUILD_TASKS) && (
{(process.env.FEATURE_BUILD_TASKS === 'active') && (
<Route path="builds/:buildId/scans" element={<SiteBuildTasks />} />
)}
</Route>
Expand Down

0 comments on commit 1262ca6

Please sign in to comment.