From 554aedbfe5b7fa07a23a2594321eedb08f6cda41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no>
Date: Wed, 21 Apr 2021 11:28:28 +0200
Subject: [PATCH] feil indentering

---
 .gitlab-ci.yml | 50 +++++++++++++++++++++++++-------------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c3465e9a..31017d42 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,16 +16,16 @@ build-dev:
       - dist
 
 build-prod:
-image: node:latest
-stage: build
-only:
-  - /^release_.*$/
-script:
+  image: node:latest
+  stage: build
+  only:
+    - /^release_.*$/
+  script:
   - npm install --progress=false
   - npm run build
-artifacts:
-  expire_in: 1 week
-  paths:
+  artifacts:
+    expire_in: 1 week
+    paths:
     - dist
 
 deploy:
@@ -57,27 +57,27 @@ deploy:
   - aws cloudfront create-invalidation --distribution-id ${DISTRO_ID} --paths "/*"
 
 deploy-prod:
-image: uibit/awscli:latest
-stage: deploy
-only:
-  - /^release_.*$/
-script:
-- rm -rf ~/.aws
-- mv  .aws ~/
-- export AWS_ACCESS_KEY_ID=$AWS_PROD_ACCESS_KEY_ID
-- export AWS_SECRET_ACCESS_KEY=$AWS_PROD_SECRET_ACCESS_KEY
-- STACK_NAME=ordbok-frontend-beta
-- CERT_ARN=arn:aws:acm:us-east-1:${AWS_PROD_ACCOUNT}:certificate/c7078026-d634-462b-86b4-1a6d33ac6d53
-- aws cloudformation deploy --stack-name ${STACK_NAME}
+  image: uibit/awscli:latest
+  stage: deploy
+  only:
+    - /^release_.*$/
+  script:
+    - rm -rf ~/.aws
+    - mv  .aws ~/
+    - export AWS_ACCESS_KEY_ID=$AWS_PROD_ACCESS_KEY_ID
+    - export AWS_SECRET_ACCESS_KEY=$AWS_PROD_SECRET_ACCESS_KEY
+    - STACK_NAME=ordbok-frontend-beta
+    - CERT_ARN=arn:aws:acm:us-east-1:${AWS_PROD_ACCOUNT}:certificate/c7078026-d634-462b-86b4-1a6d33ac6d53
+    - aws cloudformation deploy --stack-name ${STACK_NAME}
                             --template-file "aws/beta.ordbok.uib.no_stack.yaml"
                             --parameter-overrides "CertificateArn=${CERT_ARN}"
                             --no-fail-on-empty-changeset
                             --capabilities CAPABILITY_IAM
-- aws s3 rm "s3://${STACK_NAME}.aws.uib.no" --recursive
-- aws s3 sync dist/ "s3://${STACK_NAME}.aws.uib.no" --delete
-- aws s3 sync api_static/ "s3://${STACK_NAME}.aws.uib.no"
-- DISTRO_ID=$(aws cloudformation describe-stack-resource
+    - aws s3 rm "s3://${STACK_NAME}.aws.uib.no" --recursive
+    - aws s3 sync dist/ "s3://${STACK_NAME}.aws.uib.no" --delete
+    - aws s3 sync api_static/ "s3://${STACK_NAME}.aws.uib.no"
+    - DISTRO_ID=$(aws cloudformation describe-stack-resource
                                  --stack-name ${STACK_NAME}
                                  --logical-resource-id Distribution
                                  --query 'StackResourceDetail.PhysicalResourceId' | jq -r)
-- aws cloudfront create-invalidation --distribution-id ${DISTRO_ID} --paths "/*"
+    - aws cloudfront create-invalidation --distribution-id ${DISTRO_ID} --paths "/*"
-- 
GitLab