ci: 👷 push docker iamge

This commit is contained in:
Kainoa Kanter 2023-07-30 06:57:33 +00:00 committed by ThatOneCalculator
parent 9c9f466cc3
commit 9a8aaabcd4
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -46,6 +46,19 @@ testCommit:
- develop - develop
- /^feature\/.*$/ - /^feature\/.*$/
dockerPush:
stage: .post
image: docker:latest
services:
- docker:dind
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
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
only:
- main
- beta
# This folder is cached between builds # This folder is cached between builds
# https://docs.gitlab.com/ee/ci/yaml/index.html#cache # https://docs.gitlab.com/ee/ci/yaml/index.html#cache
cache: cache:
@ -54,5 +67,3 @@ cache:
- packages/*/node_modules/ - packages/*/node_modules/
- packages/backend/native-utils/node_modules/ - packages/backend/native-utils/node_modules/
- packages/backend/native-utils/.cargo/ - packages/backend/native-utils/.cargo/