Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Allow for dependencies to not be compiled #183

Merged
merged 1 commit into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/data/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- id: io.buildpacks.stacks.jammy
version-constraint: ">=6.*"
- name: dotnet-sdk
skip_compile: true
stacks:
- id: io.buildpacks.stacks.bionic
version-constraint: "*"
Expand Down
1 change: 1 addition & 0 deletions .github/data/dependency-workflows-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ stacks:
mixins:
required_dependency:
skip_test:
skip_compile:
17 changes: 17 additions & 0 deletions .github/templates/build-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
version: "${{ env.VERSION }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"

#@ if data.values.skip_compile != 'true':
- name: Build
id: build
uses: paketo-buildpacks/dep-server/actions/build-dependency@main
Expand All @@ -65,6 +66,7 @@ jobs:
bucket-name: ${{ secrets.DEPS_BUCKET }}
dependency-name: ${{ env.DEP_NAME }}
artifact-path: "${{ github.workspace }}/${{ steps.build.outputs.artifact-path }}"
#@ end

- name: Modify CPE for Dispatch
id: modify-cpe
Expand All @@ -84,6 +86,7 @@ jobs:
repos: paketo-buildpacks/dep-server
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
event: #@ data.values.name + "-test"
#@ if data.values.skip_compile != 'true':
payload: |
{
"version": "${{ env.VERSION }}",
Expand All @@ -96,6 +99,20 @@ jobs:
"purl": "${{ steps.upstream.outputs.purl }}",
"licenses": "${{ steps.flatten-licenses.outputs.licenses }}"
}
#@ else:
payload: |
{
"version": "${{ env.VERSION }}",
"uri": "${{ steps.upstream.outputs.uri }}",
"sha256": "${{ steps.upstream.outputs.sha256 }}",
"source_uri": "${{ steps.upstream.outputs.uri }}",
"source_sha256": "${{ steps.upstream.outputs.sha256 }}",
"deprecation_date": "${{ steps.upstream.outputs.deprecation-date }}",
"cpe": "${{ steps.modify-cpe.outputs.cpe }}",
"purl": "${{ steps.upstream.outputs.purl }}",
"licenses": "${{ steps.flatten-licenses.outputs.licenses }}"
}
#@ end

- name: Notify Maintainers of Failures
if: ${{ failure() }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/generate-dependency-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
mixins="$(echo "${obj}" | jq -r '.stacks[] | select( .id == "io.buildpacks.stacks.bionic").mixins // empty' -c)"
requires="$(echo "${obj}" | jq -r '.requires // empty')"
skip_test="$(echo "${obj}" | jq -r '.skip_test // false')"
skip_compile="$(echo "${obj}" | jq -r '.skip_compile // false')"

ytt \
-f ".github/templates/get-new-versions.yml" \
Expand All @@ -55,6 +56,7 @@ jobs:
-f ".github/templates/build-upload.yml" \
-f ".github/data/dependency-workflows-config.yml" \
-v name="${name}" \
-v skip_compile="${skip_compile}" \
> ".github/workflows/${name}-build-upload.yml"

ytt \
Expand Down