From 948e7d13c7cb99a615a540fe043a12d5dc242bda Mon Sep 17 00:00:00 2001 From: Philipp Geyer Date: Fri, 28 Jan 2022 21:26:19 +0000 Subject: Adding deploy build script --- appspec.yml | 6 +++++- scripts/build.sh | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 scripts/build.sh diff --git a/appspec.yml b/appspec.yml index 97fbb4d..c38058c 100644 --- a/appspec.yml +++ b/appspec.yml @@ -3,4 +3,8 @@ os: linux files: - source: / destination: /home/ec2-user/philippgeyer.co.uk - \ No newline at end of file +hooks: + ApplicationStart: + - location: scripts/build.sh + timeout: 300 + runas: ec2-user \ No newline at end of file diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..b6d0580 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +DIR=/home/ec2-user/philippgeyer.co.uk + +pushd ${DIR} + +make + +popd -- cgit v1.2.3-70-g09d2