ci: 👷 push docker iamge
This commit is contained in:
parent
9c9f466cc3
commit
9a8aaabcd4
1 changed files with 13 additions and 2 deletions
|
@ -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/
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue