Fixed Vames - Added Docker build deploy scripts

This commit is contained in:
Matthew McKinnon 2022-08-07 14:06:23 +10:00
parent a30002a7a0
commit a73c19b786

View File

@ -2,7 +2,7 @@ stages:
- build-eleventy - build-eleventy
- docker-build - docker-build
build-eleventy: build-eleventy:
stage: build stage: build-eleventy
image: node:latest image: node:latest
cache: cache:
paths: paths:
@ -16,8 +16,8 @@ build-eleventy:
only: only:
- master - master
docker_build: docker-build:
stage: build stage: docker-build
script: script:
- 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 --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG . - docker build --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .