Commit 1bb8ed8b authored by Николай Осинцев's avatar Николай Осинцев
Browse files

dev: gitlab-ci.yml: build&push via Docker-in-Docker

parent 7f33cb41
No related merge requests found
Pipeline #73507 failed with stages
in 1 minute and 58 seconds
Showing with 8 additions and 4 deletions
+8 -4
...@@ -13,11 +13,13 @@ workflow: ...@@ -13,11 +13,13 @@ workflow:
PUSH_TAG: "dev" PUSH_TAG: "dev"
- when: always - when: always
variables:
DOCKER_TLS_CERTDIR: "/certs"
build-application: build-application:
stage: build stage: build
tags: tags:
- shell - docker
- my - my
script: script:
- echo "Building... This will take about 10 seconds." - echo "Building... This will take about 10 seconds."
...@@ -27,7 +29,7 @@ build-application: ...@@ -27,7 +29,7 @@ build-application:
lint-testing: lint-testing:
stage: testing stage: testing
tags: tags:
- shell - docker
- my - my
script: script:
- echo "Running lint tests... This will take about 10 seconds." - echo "Running lint tests... This will take about 10 seconds."
...@@ -43,7 +45,7 @@ unit-testing: ...@@ -43,7 +45,7 @@ unit-testing:
needs: needs:
- lint-testing - lint-testing
tags: tags:
- shell - docker
- my - my
script: script:
- echo "Current branch is $CI_COMMIT_BRANCH" - echo "Current branch is $CI_COMMIT_BRANCH"
...@@ -53,12 +55,14 @@ unit-testing: ...@@ -53,12 +55,14 @@ unit-testing:
- echo "Unit tests passed." - echo "Unit tests passed."
build-image-job: build-image-job:
services:
- docker:20.10.16-dind
stage: packaging stage: packaging
only: only:
- master - master
- develop - develop
tags: tags:
- shell - dind
- my - my
script: script:
- echo "Current branch is $CI_COMMIT_BRANCH" - echo "Current branch is $CI_COMMIT_BRANCH"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment