fix: 💚 Docker env for CI

This commit is contained in:
ThatOneCalculator 2023-08-01 23:32:30 -07:00
parent 6c86e842b2
commit cac582a60d
No known key found for this signature in database
GPG key ID: 8703CACD01000000
3 changed files with 6 additions and 0 deletions

4
.config/docker_ci.env Normal file
View file

@ -0,0 +1,4 @@
# db settings
POSTGRES_PASSWORD=test
POSTGRES_USER=postgres
POSTGRES_DB=postgres

1
.gitignore vendored
View file

@ -25,6 +25,7 @@ coverage
!/.config/example.yml
!/.config/devenv.yml
!/.config/docker_example.env
!/.config/docker_ci.env
!/.config/helm_values_example.yml
!/.config/LICENSE

View file

@ -53,6 +53,7 @@ dockerPush:
- docker:dind
before_script:
- cp .config/ci.yml .config/default.yml
- cp .config/docker_ci.env .config/docker.env
script:
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
- echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY