Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/getporter/pipeline-demo
Demo repo for using Porter in a CI pipeline
https://github.com/getporter/pipeline-demo
demo porter
Last synced: 3 months ago
JSON representation
Demo repo for using Porter in a CI pipeline
- Host: GitHub
- URL: https://github.com/getporter/pipeline-demo
- Owner: getporter
- License: apache-2.0
- Created: 2020-06-16T20:24:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-18T17:59:10.000Z (about 4 years ago)
- Last Synced: 2024-04-17T19:41:24.037Z (7 months ago)
- Topics: demo, porter
- Language: Shell
- Homepage: https://getporter.org/best-practices/github-workflow/
- Size: 48.8 KB
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cnab - pipeline-demo - This is an example bundle that uses the docker mixin along with a GitHub workflow to demonstrate how you can use a workflow with your bundle (Implementations / Porter)
README
# Bundle with Workflow
This is an example bundle that uses the [docker mixin](https://github.com/getporter/docker-mixin) along with a [GitHub workflow](https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow) to demonstrate how
you can use a workflow with your bundle. You can fork and clone this repository and then make pull requests
and merges to make the workflow run. For more details on how to use GitHub workflows with your Porter bundles, head to the [best practices page](https://porter.sh/best-practices/github-workflow/).# Contents
## porter.yaml
This is the porter manifest. See https://porter.sh/author-bundles/ for
details on every field and how to configure your bundle. This is a required
file.## helpers.sh
This is a bash script where you can place helper functions that you can call
from your porter.yaml file.## README.md
This explains the files in this example bundle. It is not used by porter and
can be deleted.## Dockerfile.tmpl
This is a template Dockerfile for the bundle's invocation image. You can
customize it to use different base images, install tools and copy configuration
files. Porter will use it as a template and append lines to it for the mixin and to set
the CMD appropriately for the CNAB specification. You can delete this file if you don't
need it.Add the following line to **porter.yaml** to enable the Dockerfile template:
```yaml
dockerfile: Dockerfile.tmpl
```By default, the Dockerfile template is disabled and Porter automatically copies
all of the files in the current directory into the bundle's invocation image. When
you use a custom Dockerfile template, you must manually copy files into the bundle
using COPY statements in the Dockerfile template.## .gitignore
This is a default file that we provide to help remind you which files are
generated by Porter, and shouldn't be committed to source control. You can
delete it if you don't need it.## .dockerignore
This is a default file that controls which files are copied into the bundle's
invocation image by default. You can delete it if you don't need it.