feat: abstracted all domain instances away to the configuration files
This commit is contained in:
14
Taskfile.yml
14
Taskfile.yml
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user