beardyjay.co.uk

My main website source code, uses Hugo.
Log | Files | Refs

commit 283a2aae9c96da118666703195af921bb23e1a1b
parent 3ca2b07ea4e2b8189ecb72fad6a23d8013e35079
Author: Jay Scott <jay@beardyjay.co.uk>
Date:   Wed, 14 Nov 2018 11:07:09 +0000

build testing

Diffstat:
M.gitlab-ci.yml | 25++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml @@ -1,17 +1,28 @@ -image: golang:1.9 +image: docker:stable + +services: + - docker:dind stages: - build +variables: + CLUSTER_NAME: "beardyjay-infrastructure" + CLUSTER_REGION: "eu-west-1" + SERVICE_NAME: "beardyjay-start-Deployment-6G763HTMKH54-Service-AH1GYUY07A1X" + before_script: - - go get -v github.com/spf13/hugo - - apt-get update -qq - - apt-get -y install python-pip - - pip install s3cmd Pygments + - docker info + - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY build: stage: build script: + - apk update && apk add py-pip groff less hugo + - pip install Pygments awscli - hugo - - s3cmd sync --no-mime-magic --delete-removed -P -M -r public/ s3://beardyjay.co.uk/ - - s3cmd --recursive modify --add-header="Cache-Control:public ,max-age=604800" --add-header="Strict-Transport-Security:max-age=31536000" s3://beardyjay.co.uk/ + - ls -la + # - docker build --pull -t "$CI_REGISTRY_IMAGE" . + # - docker push "$CI_REGISTRY_IMAGE" + only: + - master