-
Notifications
You must be signed in to change notification settings - Fork 159
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 dependabot/npm_and_yarn/d3-dag-1.1.0
- Loading branch information
Showing
10 changed files
with
818 additions
and
647 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,92 @@ | ||
name: Build and Push image | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
file: | ||
required: true | ||
type: string | ||
flavor: | ||
type: string | ||
image: | ||
required: true | ||
type: string | ||
platforms: | ||
type: string | ||
push: | ||
required: true | ||
type: boolean | ||
ref: | ||
type: string | ||
tags: | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
|
||
jobs: | ||
build-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write # for docker/build-push-action to push images | ||
id-token: write # for Cosign to be able to sign images with GHA token | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
- name: Unshallow | ||
if: ${{ inputs.ref != '' }} | ||
run: | | ||
git fetch --prune --unshallow | ||
git fetch --tags -f | ||
- name: Set build-time flags | ||
run: | | ||
echo "LDFLAGS=$(make echo-ldflags)" >> $GITHUB_ENV | ||
echo "FLUX_VERSION=$(make echo-flux-version)" >> $GITHUB_ENV | ||
- uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1 | ||
id: meta | ||
with: | ||
images: ${{ inputs.image }} | ||
tags: ${{ inputs.tags }} | ||
flavor: ${{ inputs.flavor }} | ||
- name: setup qemu | ||
if: ${{ inputs.platforms != '' }} | ||
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0 | ||
- uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0 | ||
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0 | ||
id: build | ||
with: | ||
context: . | ||
platforms: ${{ inputs.platforms }} | ||
file: ${{ inputs.file }} | ||
build-args: | | ||
FLUX_VERSION=${{ env.FLUX_VERSION }} | ||
LDFLAGS=${{ env.LDFLAGS }} | ||
GIT_COMMIT=${{ github.sha }} | ||
push: ${{ inputs.push }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
- name: Install cosign | ||
if: ${{ inputs.push }} | ||
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 | ||
- name: Keyless signing of image | ||
if: ${{ inputs.push }} | ||
run: | | ||
echo ${{ steps.build.outputs.imageid }} | ||
echo ${{ steps.build.outputs.digest }} | ||
cosign sign --yes ${{ inputs.image }}@${{ steps.build.outputs.digest }} | ||
- name: Verify the image signing | ||
if: ${{ inputs.push }} | ||
run: | | ||
cosign verify ${{ inputs.image }}@${{ steps.build.outputs.digest }} \ | ||
--certificate-identity "https://github.com/${{ github.workflow_ref }}" \ | ||
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" | jq . |
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 |
---|---|---|
|
@@ -73,19 +73,19 @@ | |
"react-dom": "^18.0.0", | ||
"react-is": "^18.0.0", | ||
"react-lottie-player": "^2.1.0", | ||
"react-markdown": "^8.0.7", | ||
"react-markdown": "^9.0.3", | ||
"react-query": "^3.39.3", | ||
"react-router-dom": "^5.2.0", | ||
"react-syntax-highlighter": "^15.6.1", | ||
"react-toastify": "^11.0.2", | ||
"remark-gfm": "^3.0.1", | ||
"remark-gfm": "^4.0.0", | ||
"styled-components": "^6.1.14", | ||
"yaml": "^2.7.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.26.0", | ||
"@babel/preset-env": "^7.26.0", | ||
"@eslint/js": "9.17.0", | ||
"@eslint/js": "9.18.0", | ||
"@parcel/config-default": "^2.13.3", | ||
"@parcel/core": "^2.13.3", | ||
"@parcel/optimizer-data-url": "^2.13.3", | ||
|
@@ -105,7 +105,7 @@ | |
"babel-jest": "^29.7.0", | ||
"babel-plugin-styled-components": "^2.1.4", | ||
"buffer": "^6.0.3", | ||
"eslint": "9.17.0", | ||
"eslint": "9.18.0", | ||
"eslint-plugin-import": "^2.31.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
|
@@ -123,15 +123,15 @@ | |
"typescript-eslint": "^8.19.1", | ||
"yarn-audit-fix": "^10.1.1" | ||
}, | ||
"alias": { | ||
"yaml": "yaml/browser/dist/index.js" | ||
}, | ||
"resolutions": { | ||
"cross-spawn": "^7.0.6", | ||
"commander": "^13.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=22.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"@parcel/resolver-default": { | ||
"packageExports": true | ||
} | ||
} |
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
Oops, something went wrong.