(MODE-11365) Fixing artifact creation.
This commit is contained in:
parent
f90f8c9a1a
commit
b53f90ed1f
1 changed files with 15 additions and 5 deletions
|
|
@ -18,12 +18,21 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
mkdir ./artifact
|
mkdir ./artifact
|
||||||
DEPLOYABLE="${CIRCLE_PROJECT_REPONAME}-${CIRCLE_SHA1}.tar.gz"
|
DEPLOYABLE="${CIRCLE_PROJECT_REPONAME}-${CIRCLE_SHA1}.tar.gz"
|
||||||
rsync -avz --exclude 'artifact' * artifact/
|
cp -rf configuration \
|
||||||
cp -rf * ./artifact/
|
node_modules \
|
||||||
|
src \
|
||||||
|
run.sh \
|
||||||
|
package.json \
|
||||||
|
map_files \
|
||||||
|
public \
|
||||||
|
docs \
|
||||||
|
publish.js \
|
||||||
|
./artifact/
|
||||||
pushd ./artifact
|
pushd ./artifact
|
||||||
echo "Taring ${DEPLOYABLE}"
|
echo "Taring ${DEPLOYABLE}"
|
||||||
tar -zcvf $DEPLOYABLE *
|
tar -zcvf $DEPLOYABLE *
|
||||||
popd
|
popd
|
||||||
|
cp -rf ./deployment ./artifact/
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: /tmp/repo
|
root: /tmp/repo
|
||||||
paths:
|
paths:
|
||||||
|
|
@ -54,12 +63,13 @@ jobs:
|
||||||
deploy-to-dev:
|
deploy-to-dev:
|
||||||
docker:
|
docker:
|
||||||
- image: monosolutions/terraform:1.0.4
|
- image: monosolutions/terraform:1.0.4
|
||||||
working_directory: /tmp/repo
|
working_directory: /tmp/repo/artifact/deployment
|
||||||
environment:
|
environment:
|
||||||
REGION: "eu-central-1"
|
REGION: "eu-central-1"
|
||||||
ENVIRONMENT: "dev"
|
ENVIRONMENT: "dev"
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- attach_workspace:
|
||||||
|
at: ~/tmp/repo
|
||||||
- run:
|
- run:
|
||||||
name: Configure deployment
|
name: Configure deployment
|
||||||
command: |
|
command: |
|
||||||
|
|
@ -74,7 +84,7 @@ deploy-to-dev:
|
||||||
- run:
|
- run:
|
||||||
name: Deploy tileserver to fra dev
|
name: Deploy tileserver to fra dev
|
||||||
command: |
|
command: |
|
||||||
cd /tmp/repo/deployment/eu-central-1/dev/tileserver && terragrunt apply --terragrunt-non-interactive -auto-approve
|
cd /tmp/repo/artifact/deployment/eu-central-1/dev/tileserver && terragrunt apply --terragrunt-non-interactive -auto-approve
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue