Using the storage options [here](https://docs.gitea.com/administration/config-cheat-sheet#storage-storage), this commit pushes all packages, avatars, and LFS files to S3. - Uses AWS S3. - Frees up storage on EC2 instance, so packages do not eventually steal all of the free space. Reviewed-on: #1 Co-authored-by: Max <git@maximhutz.me> Co-committed-by: Max <git@maximhutz.me>
22 lines
827 B
YAML
22 lines
827 B
YAML
version: 3
|
|
|
|
includes:
|
|
tf: { taskfile: terraform, dir: terraform }
|
|
|
|
tasks:
|
|
dev:
|
|
- docker compose -f compose.dev.yml rm -fsv
|
|
- docker compose -f compose.dev.yml up --build --force-recreate --no-deps
|
|
|
|
deploy:fast: ansible-playbook playbooks/fast.yml
|
|
deploy:slow: ansible-playbook playbooks/slow.yml
|
|
deploy:restore: ansible-playbook playbooks/restore.yml -e "restore_bucket={{.BUCKET}} restore_key={{.KEY}}"
|
|
|
|
enter:
|
|
cmd: aws ssm start-session --target $INSTANCE_ID
|
|
env:
|
|
INSTANCE_ID: { sh: jq -r .instance_id.value < config/infrastructure.secret.json }
|
|
AWS_REGION: { sh: jq -r .aws_region < config/ansible.secret.json }
|
|
AWS_ACCESS_KEY_ID: { sh: jq -r .aws_access_key < config/ansible.secret.json }
|
|
AWS_SECRET_ACCESS_KEY: { sh: jq -r .aws_secret_key < config/ansible.secret.json }
|