34 lines
1.6 KiB
Makefile
34 lines
1.6 KiB
Makefile
token-current:
|
|
zip build/wow-token-current.zip wow-token-current.py
|
|
|
|
token-current-upload: token-current
|
|
openssl dgst -sha256 -binary build/wow-token-current.zip | openssl enc -base64 > build/wow-token-current.zip.sha256
|
|
aws s3 cp build/wow-token-current.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1
|
|
aws s3 cp build/wow-token-current.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1
|
|
|
|
token-historical:
|
|
zip build/wow-token-historical.zip wow-token-historical.py
|
|
|
|
token-historical-upload: token-historical
|
|
openssl dgst -sha256 -binary build/wow-token-historical.zip | openssl enc -base64 > build/wow-token-historical.zip.sha256
|
|
aws s3 cp build/wow-token-historical.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1
|
|
aws s3 cp build/wow-token-historical.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1
|
|
|
|
token-updater:
|
|
cd venv/lib/python3.9/site-packages && zip -qr ../../../../build/wow-token-updater.zip .
|
|
zip -g build/wow-token-updater.zip wow-token-updater.py
|
|
|
|
token-updater-upload: token-updater
|
|
openssl dgst -sha256 -binary build/wow-token-updater.zip | openssl enc -base64 > build/wow-token-updater.zip.sha256
|
|
aws s3 cp build/wow-token-updater.zip s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1
|
|
aws s3 cp build/wow-token-updater.zip.sha256 s3://emily-infrastructure-artifacts/wowtoken-backend/ --region us-west-1
|
|
|
|
|
|
upload: token-current-upload token-updater-upload token-historical-upload
|
|
|
|
clean:
|
|
rm -v build/*
|
|
|
|
all: upload
|
|
|