Skip to content

Commit

Permalink
Added Sankey Plugin (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin-Belton-gov <[email protected]>
  • Loading branch information
MartinBelton-gov and Martin-Belton-gov authored Feb 22, 2024
1 parent 829f9fb commit 0141a99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
PLUGIN_VERSION: 1.0.11
PLUGIN_VERSION: 1.0.12

jobs:
build:
Expand Down Expand Up @@ -82,12 +82,14 @@ jobs:
cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/latest-cost-plugin
wget "https://github.com/DFE-Digital/Grafana.Plugin.CostManagement/releases/download/main/dfe-azurecostbackend-datasource-${{ env.PLUGIN_VERSION }}.zip"
wget "https://grafana.com/api/plugins/blackcowmoo-googleanalytics-datasource/versions/0.2.3/download" -O blackcowmoo-googleanalytics-datasource-0.2.3.zip
wget "https://grafana.com/api/plugins/netsage-sankey-panel/versions/1.1.1/download" -O netsage-sankey-panel-1.1.1.zip
- name: Unzip Plugin
run: |
cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/latest-cost-plugin
unzip -o dfe-azurecostbackend-datasource-${{ env.PLUGIN_VERSION }}.zip
unzip -o blackcowmoo-googleanalytics-datasource-0.2.3.zip
unzip -o netsage-sankey-panel-1.1.1.zip
cp /home/runner/work/childrens-social-care-cpd-grafana/childrens-social-care-cpd-grafana/grafana-files/grafana.ini .
cd /home/runner/work/Grafana.Plugin.CostManagement/Grafana.Plugin.CostManagement/latest-cost-plugin/dfe-azurecostbackend-datasource
pwd
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
PLUGIN_VERSION: 1.0.11
PLUGIN_VERSION: 1.0.12

jobs:
build-and-push:
Expand All @@ -30,9 +30,11 @@ jobs:
cd latest-cost-plugin
wget "https://github.com/DFE-Digital/Grafana.Plugin.CostManagement/releases/download/main/dfe-azurecostbackend-datasource-${{ env.PLUGIN_VERSION }}.zip"
wget "https://grafana.com/api/plugins/blackcowmoo-googleanalytics-datasource/versions/0.2.3/download" -O blackcowmoo-googleanalytics-datasource-0.2.3.zip
wget "https://grafana.com/api/plugins/netsage-sankey-panel/versions/1.1.1/download" -O netsage-sankey-panel-1.1.1.zip
ls
unzip -o dfe-azurecostbackend-datasource-${{ env.PLUGIN_VERSION }}.zip
unzip -o blackcowmoo-googleanalytics-datasource-0.2.3.zip
unzip -o netsage-sankey-panel-1.1.1.zip
cp /home/runner/work/childrens-social-care-cpd-grafana/childrens-social-care-cpd-grafana/grafana-files/grafana.ini .
cd ..
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ COPY latest-cost-plugin/grafana.ini /etc/grafana/grafana.ini
# Copy your plugin files into the Grafana plugins directory
COPY latest-cost-plugin/dfe-azurecostbackend-datasource /var/lib/grafana/plugins/dfe-azurecostbackend-datasource
COPY latest-cost-plugin/blackcowmoo-googleanalytics-datasource /var/lib/grafana/plugins/blackcowmoo-googleanalytics-datasource
COPY latest-cost-plugin/netsage-sankey-panel /var/lib/grafana/plugins/netsage-sankey-panel

# Set permissions for the plugin directory
RUN chown -R 472:472 /var/lib/grafana/plugins/dfe-azurecostbackend-datasource
RUN chown -R 472:472 /var/lib/grafana/plugins/blackcowmoo-googleanalytics-datasource
RUN chown -R 472:472 /var/lib/grafana/plugins/blackcowmoo-googleanalytics-datasource
RUN chown -R 472:472 /var/lib/grafana/plugins/netsage-sankey-panel

0 comments on commit 0141a99

Please sign in to comment.