Skip to content
Snippets Groups Projects
Commit 6e6260f3 authored by Max Lou's avatar Max Lou
Browse files

Update .gitlab-ci.yml file

parent 70e0d781
Branches
No related tags found
No related merge requests found
......@@ -15,8 +15,6 @@ dashboard-example-docker-build:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- apt update
- apt install npm
# Default branch leaves tag empty (= latest tag)
# All other branches are tagged with the escaped branch name (commit ref slug)
script:
......@@ -33,6 +31,5 @@ dashboard-example-docker-build:
- echo CI_PROJECT_ID=$CI_PROJECT_ID >> .env
- echo CI_JOB_TOKEN=$CI_JOB_TOKEN >> .env
- cat .env
- npm install
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}/dashboard-example" .
- docker push "$CI_REGISTRY_IMAGE${tag}/dashboard-example"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment