forked from sigstore/rekor-search-ui
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into unit-test-setup
- Loading branch information
Showing
10 changed files
with
71 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Trigger Konflux build | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trigger-konflux-build: | ||
uses: securesign/actions/.github/workflows/trigger-konflux-build.yaml@main | ||
with: | ||
branch: main | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
FROM registry.access.redhat.com/ubi9/nodejs-18@sha256:773645c3eae02529e09c04a843a0c6783de45b084b325685b043b7818c7a8bf6 as Build | ||
# | ||
COPY . . | ||
USER root | ||
USER root | ||
ENV NODE_ENV production | ||
EXPOSE 3000 | ||
RUN echo "export PATH=${PATH}:$HOME/node_modules/.bin" >> ~/.bashrc && \ | ||
npm install --ignore-scripts && \ | ||
npm run build && \ | ||
chmod -R 777 /opt/app-root/src/.npm && \ | ||
echo "NEXT_PUBLIC_REKOR_DEFAULT_DOMAIN = ${NEXT_PUBLIC_REKOR_DEFAULT_DOMAIN}" && \ | ||
npm cache clean --force | ||
USER 1001 | ||
CMD ["npm", "run", "start"] | ||
CMD ["node_modules/.bin/next", "start"] | ||
|
||
LABEL \ | ||
com.redhat.component="trusted-artifact-signer-rekor-ui" \ | ||
name="trusted-artifact-signer-rekor-ui" \ | ||
version="0.0.1" \ | ||
summary="User Interface for checking Rekor Entries" \ | ||
description="Provides a user interface for checking Rekor Entries through an Node App" \ | ||
io.k8s.description="Provides a user interface for checking Rekor Entries through an Node App" \ | ||
io.k8s.display-name="Provides a user interface for checking Rekor Entries through an Node App" \ | ||
description="Provides a user interface for checking Rekor Entries through a Node App" \ | ||
io.k8s.description="Provides a user interface for checking Rekor Entries through a Node App" \ | ||
io.k8s.display-name="Provides a user interface for checking Rekor Entries through a Node App" \ | ||
io.openshift.tags="rekor-ui, rekor, cli, rhtas, trusted, artifact, signer, sigstore" \ | ||
maintainer="trusted-artifact-signer@redhat.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
transpilePackages: ["@patternfly/react-core", "@patternfly/react-styles"], | ||
publicRuntimeConfig: { | ||
// remove private env variables | ||
processEnv: Object.fromEntries( | ||
Object.entries(process.env).filter(([key]) => | ||
key.includes("NEXT_PUBLIC_"), | ||
), | ||
), | ||
}, | ||
transpilePackages: [ | ||
"@patternfly/react-core", | ||
"@patternfly/react-icons", | ||
"@patternfly/react-styles", | ||
], | ||
}; | ||
|
||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters