feat: abstracted all domain instances away to the configuration files

This commit is contained in:
2025-02-12 15:50:49 -05:00
parent f458119e2c
commit aa9810d0a8
10 changed files with 36 additions and 35 deletions

View File

@@ -1,5 +1,10 @@
version: 3
silent: true
# silent: true
vars:
DOMAIN: { sh: jq -r .domain < config/variables.secret.tf.json }
SUB_DOMAIN: { sh: jq -r .subdomain < config/variables.secret.tf.json }
FULL_DOMAIN: '{{.SUB_DOMAIN}}.{{.DOMAIN}}'
includes:
tf: { taskfile: terraform, dir: terraform }
@@ -26,9 +31,8 @@ tasks:
push:
dir: gitea
vars:
TAG: git.maximhutz.com/web/git/gitea:latest
TAG: '{{.FULL_DOMAIN}}/web/gitea:latest'
cmds:
- docker login git.maximhutz.com -u max
- docker login '{{.FULL_DOMAIN}}' -u max
- defer: docker logout
- docker build . -t {{.TAG}} -f Dockerfile --platform linux/amd64,linux/arm64
- docker push {{.TAG}}
- docker buildx build -t {{.TAG}} -f Dockerfile --platform linux/amd64,linux/arm64 --push --provenance=false .