Skip to content

Commit 7628737

Browse files
author
Nils K
committed
copy csv
1 parent 2bd914d commit 7628737

File tree

4 files changed

+57
-1
lines changed

4 files changed

+57
-1
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
First off, thanks for taking the time to contribute!
2+
3+
## Please Complete the Following
4+
5+
- [ ] I read `CONTRIBUTING.md`
6+
- [ ] I used tabs to indent
7+
- [ ] I have tested my change
8+
9+
## Notes
10+
11+
Feel free to put whatever you want here.

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Build"
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install dependencies
12+
run: |
13+
sudo apt-get install \
14+
sqlite3 \
15+
libapp-options-perl \
16+
libyaml-libyaml-perl \
17+
libdbd-csv-perl \
18+
libdbd-sqlite3-perl \
19+
libtemplate-perl
20+
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Setup Google Cloud SDK
25+
run: |
26+
echo ${{ secrets.GOOGLE_CLOUD_SERVICE_ACCOUNT_KEY }} > '/tmp/key.json' && \
27+
gcloud auth activate-service-account --key-file='/tmp/key.json' || exit 9
28+
29+
- name: Download pricing
30+
run: |
31+
cd build || exit 9
32+
curl -OL 'https://github.com/Cyclenerd/google-cloud-pricing-cost-calculator/raw/master/pricing.yml' || exit 9
33+
34+
- name: Run build script
35+
run: |
36+
cd build || exit 9
37+
bash build.sh || exit 9
38+
39+
- name: Create site
40+
run: |
41+
cd build || exit 9
42+
perl site.pl || exit 9

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ you need the following requirements.
1616

1717
### Requirements
1818

19-
+ Google Cloud SDK (`gcloud`)
19+
* Google Cloud SDK (`gcloud`)
2020
* SQLite3 (`sqlite3`)
2121
* Perl 5 (`perl`)
2222
* Perl modules:

build/site.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@
283283
print FH encode_json \@instances_in_regions;
284284
close FH;
285285

286+
# CSV
287+
copy('./machine-types-regions.csv', '../site/machine-types-regions.csv');
288+
286289
# Images
287290
mkdir( '../site/img/');
288291
copy( './src/img/combine-filter.png', '../site/img/combine-filter.png');

0 commit comments

Comments
 (0)