-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/release/0.12.0' into main
- Loading branch information
Showing
4 changed files
with
132 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: delivery / chocolatey | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
env: | ||
CHOC_PATH: chocolatey | ||
|
||
jobs: | ||
prepare-chocolatey: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Determine version | ||
shell: bash | ||
run: echo "::set-env name=PACK_VERSION::`echo ${{ github.event.release.tag_name }} | cut -d "v" -f2`" | ||
- name: Setup working dir | ||
run: | | ||
mkdir -p ${{ env.CHOC_PATH }} | ||
cp -r .github/workflows/delivery/chocolatey/. ${{ env.CHOC_PATH }}/ | ||
ls -R ${{ env.CHOC_PATH }} | ||
- name: Download and unzip Pack (Windows) | ||
shell: bash | ||
run: | | ||
url="https://github.com/buildpacks/pack/releases/download/v${{ env.PACK_VERSION }}/pack-v${{ env.PACK_VERSION }}-windows.zip" | ||
filename=pack.zip | ||
zip_path=${{ env.CHOC_PATH }}/tools/$filename | ||
curl -sSL "$url" -o "$zip_path" | ||
apt-get update && apt-get install unzip | ||
unzip -o "$zip_path" | ||
rm "$zip_path" | ||
- name: Fill nuspec | ||
shell: bash | ||
run: | | ||
file=${{ env.CHOC_PATH }}/pack.nuspec | ||
sed -i "s/{{PACK_VERSION}}/${{ env.PACK_VERSION }}/g" $file | ||
cat $file | ||
- name: Fill License | ||
shell: bash | ||
run: | | ||
file="${{ env.CHOC_PATH }}/tools/LICENSE.txt" | ||
cp LICENSE $file | ||
cat $file | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.CHOC_PATH }} | ||
path: ${{ env.CHOC_PATH }}/ | ||
deliver-chocolatey: | ||
runs-on: windows-latest | ||
needs: [prepare-chocolatey] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: ${{ env.CHOC_PATH }} | ||
- name: Determine version | ||
run: echo "::set-env name=PACK_VERSION::`echo ${{ github.event.release.tag_name }} | cut -d "v" -f2`" | ||
shell: bash | ||
- name: build-release | ||
uses: crazy-max/ghaction-chocolatey@v1 | ||
with: | ||
args: pack ${{ env.CHOC_PATH }}/pack.nuspec --outputdirectory ${{ env.CHOC_PATH}} | ||
- name: Test Release | ||
uses: crazy-max/ghaction-chocolatey@v1 | ||
with: | ||
args: install pack -s ${{ env.CHOC_PATH }} | ||
- name: Upload Release | ||
uses: crazy-max/ghaction-chocolatey@v1 | ||
with: | ||
args: push ${{ env.CHOC_PATH }}/pack.${{ env.PACK_VERSION }}.nupkg -s https://push.chocolatey.org/ -k ${{ secrets.CHOC_KEY }} |
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,47 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>pack</id> | ||
<version>{{PACK_VERSION}}</version> | ||
<packageSourceUrl>https://github.com/buildpacks/pack</packageSourceUrl> | ||
<owners>Cloud Native Buildpack Authors</owners> | ||
|
||
<title>pack</title> | ||
<authors>Cloud Native Buildpack Authors</authors> | ||
<projectUrl>https://github.com/buildpacks/pack</projectUrl> | ||
<iconUrl>https://rawcdn.githack.com/buildpacks/artwork/36f02fae98ed82bb3175918796b6cca7acb813df/light-background/logo-light.png</iconUrl> | ||
<licenseUrl>https://github.com/buildpacks/pack/blob/main/LICENSE</licenseUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<projectSourceUrl>https://github.com/buildpacks/pack</projectSourceUrl> | ||
<docsUrl>https://buildpacks.io/docs/</docsUrl> | ||
<mailingListUrl>https://lists.cncf.io/g/cncf-buildpacks</mailingListUrl> | ||
<bugTrackerUrl>https://github.com/buildpacks/pack/issues</bugTrackerUrl> | ||
<tags>pack cloud-native-buildpacks cncf</tags> | ||
<summary>pack is a CLI for building apps using Cloud Native Buildpacks.</summary> | ||
<description> | ||
This package installs/upgrades the pack - Buildpacks CLI release. | ||
|
||
[![Slack](https://slack.buildpacks.io/badge.svg)](https://slack.buildpacks.io/) | ||
|
||
`pack` makes it easy for... | ||
- [**App Developers**](https://buildpacks.io/docs/app-developer-guide/) to use buildpacks to convert code into runnable images. | ||
- [**Buildpack Authors**](https://buildpacks.io/docs/buildpack-author-guide/) to develop and package buildpacks for distribution. | ||
- [**Operators**](https://buildpacks.io/docs/operator-guide/) to package buildpacks for distribution and maintain applications. | ||
|
||
## Usage | ||
|
||
<img src="https://github.com/buildpacks/pack/raw/main/resources/pack-build.gif" width="600px" /> | ||
|
||
## Getting Started | ||
|
||
Get started by running through our tutorial: [An App’s Brief Journey from Source to Image](https://buildpacks.io/docs/app-journey) | ||
|
||
## Specifications | ||
`pack` is a CLI implementation of the [Platform Interface Specification][platform-spec] for [Cloud Native Buildpacks](https://buildpacks.io/). | ||
</description> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
</files> | ||
</package> |
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,6 @@ | ||
|
||
VERIFICATION | ||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's contents are trustworthy. | ||
|
||
This release is published by the Cloud Native Buildpacks project, creators of the Pack CLI. |
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