Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/0.12.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 6, 2020
2 parents 9ae2373 + 658c93a commit c9bb6af
Show file tree
Hide file tree
Showing 4 changed files with 132 additions and 3 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/delivery-chocolatey.yml
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 }}
47 changes: 47 additions & 0 deletions .github/workflows/delivery/chocolatey/pack.nuspec
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>
6 changes: 6 additions & 0 deletions .github/workflows/delivery/chocolatey/tools/VERIFICATION.txt
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.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@

## Getting Started

Get started by running through our tutorial: [An App’s Brief Journey from Source to Image][getting-started]
Get started by running through our tutorial: [An App’s Brief Journey from Source to Image][getting-started]

## Contributing

- [CONTRIBUTING](CONTRIBUTING.md) - Information on how to contribute, including the pull request process.
- [DEVELOPMENT](DEVELOPMENT.md) - Further detail to help you during the development process.
- [DEVELOPMENT](DEVELOPMENT.md) - Further detail to help you during the development process.


## Specifications
`pack` is a CLI implementation of the [Platform Interface Specification][platform-spec] for [Cloud Native Buildpacks][buildpacks.io].
`pack` is a CLI implementation of the [Platform Interface Specification][platform-spec] for [Cloud Native Buildpacks][buildpacks.io].

To learn more about the details, check out the [specs repository][specs].

Expand Down

0 comments on commit c9bb6af

Please sign in to comment.