Commit df74d84f authored by Enrique Garcia's avatar Enrique Garcia
Browse files

last test

parent 354ef0d1
Pipeline #106269 passed with stages
in 3 minutes and 47 seconds
...@@ -18,14 +18,14 @@ test_docker_auto_update: ...@@ -18,14 +18,14 @@ test_docker_auto_update:
services: services:
- docker:19.03.12-dind - docker:19.03.12-dind
before_script: before_script:
- cat /etc/os-release - cat /etc/os-release # "Alpine Linux v3.12"
- apk add git - apk add git
- export LAST_RELEASE=`git ls-remote --tags --refs --sort="v:refname" $CI_PROJECT_URL.git | tail -n1 | sed 's/.*\///'` - export LAST_RELEASE=`git ls-remote --tags --refs --sort="v:refname" $CI_PROJECT_URL.git | tail -n1 | sed 's/.*\///'`
- echo $LAST_RELEASE - echo $LAST_RELEASE
script: script:
- cd Docker - cd Docker
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE/dummy_image:$LAST_RELEASE-dummy . - docker build -t $CI_REGISTRY_IMAGE/dummy_image:$LAST_RELEASE-CI_updated .
- docker push $CI_REGISTRY_IMAGE/dummy_image:$LAST_RELEASE-dummy - docker push $CI_REGISTRY_IMAGE/dummy_image:$LAST_RELEASE-CI_updated
only: only:
- branches - branches
\ No newline at end of file
Markdown is supported
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