gcpinstances.info icon indicating copy to clipboard operation
gcpinstances.info copied to clipboard

Automate updating the data

Open gdubicki opened this issue 1 year ago • 4 comments

every day a minute after midnight + after each push to master.

Also the data.json is now pretty-printed.

Implements #34

gdubicki avatar Apr 09 '23 16:04 gdubicki

Please note that you have to set AWS_KEY_ID and AWS_SECRET_ACCESS_KEY in https://github.com/doitintl/gcpinstances.info project's encrypted secrets. This should be relatively safe as they can't be used in forks.

Also, I haven't really tested the add-and-commit@v9 step so it might need some config tweaking to work.

gdubicki avatar Apr 09 '23 16:04 gdubicki

Thanks.

I would have to comment out the prettifier. The file size after the is much higher and it increase the load time dramatically.

Regarding the environment variable. I'm going to use GitHub oidc provider. So we don't need to use iam keys.

Burekasim avatar Apr 09 '23 17:04 Burekasim

I would have to comment out the prettifier. The file size after the is much higher and it increase the load time dramatically.

Sure, feel free. You can push to my brach or do it any other way you want.

But isn’t the file served compressed with gzip anyway so the size before doesn’t matter?

Regarding the environment variable. I'm going to use GitHub oidc provider. So we don't need to use iam keys.

👌

gdubicki avatar Apr 09 '23 20:04 gdubicki

I checked and data.json is being sent compressed. 700kb before, but below 100kb after compression.

gdubicki avatar Apr 09 '23 20:04 gdubicki