Commit 1d80d04f authored by Alessio Parma's avatar Alessio Parma 🐔

Update .gitlab-ci.yml

parent 25f029eb
Pipeline #152131433 passed with stages
in 49 minutes and 14 seconds
......@@ -17,7 +17,7 @@ build-testing-docker-image:
- docker:dind
variables:
DOCKER_TAG: $CI_REGISTRY_IMAGE:testing
DOCKERFILE_LOCATION: src/PommaLabs.Thumbnailer/Dockerfile
DOCKERFILE_LOCATION: src/PommaLabs.Thumbnailer/Dockerfile.latest
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $DOCKER_TAG -f $DOCKERFILE_LOCATION .
......@@ -43,12 +43,12 @@ publish-on-docker-hub:
- docker:dind
variables:
DOCKER_TAG_PREFIX: $DOCKER_ORGANIZATION/$DOCKER_REPOSITORY
DOCKERFILE_LOCATION: src/PommaLabs.Thumbnailer/Dockerfile
DOCKERFILE_LOCATION_PREFIX: src/PommaLabs.Thumbnailer/Dockerfile
script:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- docker build -t $DOCKER_TAG_PREFIX:latest -f $DOCKERFILE_LOCATION.latest .
- docker build -t $DOCKER_TAG_PREFIX:latest -f $DOCKERFILE_LOCATION_PREFIX.latest .
- docker push $DOCKER_TAG_PREFIX:latest
- docker build -t $DOCKER_TAG_PREFIX:azure-appsvc -f $DOCKERFILE_LOCATION.azure-appsvc .
- docker build -t $DOCKER_TAG_PREFIX:azure-appsvc -f $DOCKERFILE_LOCATION_PREFIX.azure-appsvc .
- docker push $DOCKER_TAG_PREFIX:azure-appsvc
only:
- master
......
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