Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add charmhub integration support #91

Closed
wants to merge 1 commit into from
Closed
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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ To monitor additional applications, simply relate the filebeat subordinate:

juju add-relation filebeat:beats-host my-charm


## Build and publish new versions

This charm uses the reactive framework. `charm build` is used to build a deployable charm.

In order to publish new versions of the charm, the following commands need to be run:

```
charm build
cd /tmp/charm-builds/filebeat
charmcraft pack
charmcraft upload filebeat_ubuntu-20.04-amd64_ubuntu-18.04-amd64_ubuntu-16.04-amd64.charm
charmcraft release filebeat --revision=34 --channel=edge
charmcraft status filebeat
```

## Contact Information

- <[email protected]>
Expand Down
38 changes: 38 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
type: charm

parts:
charm:
plugin: dump
source: .
prime:
- actions/*
- actions.yaml
- bin/*
- config.yaml
- copyright
- hooks/*
- icon.svg
- lib/*
- LICENSE
- metadata.yaml
- reactive/*
- README.md
- templates/*
- wheelhouse/*
- wheelhouse.txt

bases:
- build-on:
- name: ubuntu
channel: "20.04"
architectures: ["amd64"]
run-on:
- name: ubuntu
channel: "20.04"
architectures: ["amd64"]
- name: ubuntu
channel: "18.04"
architectures: ["amd64"]
- name: ubuntu
channel: "16.04"
architectures: ["amd64"]