From d16a083e2458e55e9cfbe0981070c78d847c7eb2 Mon Sep 17 00:00:00 2001 From: Alvaro Uria Date: Thu, 17 Mar 2022 10:53:09 +0200 Subject: [PATCH] Add charmhub integration support --- README.md | 16 ++++++++++++++++ charmcraft.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 charmcraft.yaml diff --git a/README.md b/README.md index 11faf34..d06dc80 100644 --- a/README.md +++ b/README.md @@ -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 - diff --git a/charmcraft.yaml b/charmcraft.yaml new file mode 100644 index 0000000..d24a264 --- /dev/null +++ b/charmcraft.yaml @@ -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"]