Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr committed Jan 15, 2024
1 parent 330bc0f commit f85bea9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
16 changes: 4 additions & 12 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,19 @@
version: 0.2

phases:
install:
commands:
- echo Installing necessary dependencies...
- apt-get update && apt-get install -y git
pre_build:
commands:
- echo Starting the build process...
- echo Cloning the repository...
- git clone https://github.com/OpenAdaptAI/SoM.git
- cd SoM
- git fetch --all
- git checkout feat/deploy
- echo "Commit ID:"
- git rev-parse HEAD
build:
commands:
- echo Build started on `date`
- echo Checking out feat/deploy...
- git fetch --all
- git checkout feat/deploy
- echo Building the Docker image...
- docker build -t 726461418004.dkr.ecr.us-east-1.amazonaws.com/guiai-app:latest .
post_build:
commands:
- echo Pushing the Docker image...
- docker push 726461418004.dkr.ecr.us-east-1.amazonaws.com/guiai-app:latest
- echo Build completed on `date`
- echo Build completed on `date`
13 changes: 3 additions & 10 deletions buildspec.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@ phases:
pre_build:
commands:
- echo Starting the build process...
- echo Current working directory:
- pwd
- ls -la
- git fetch --all
- git checkout {{ branch_name }}
- echo "Commit ID:"
- git rev-parse HEAD
- git reset --hard origin/{{ branch_name }}
- echo "Post-checkout file listing:"
- ls -la
build:
commands:
- echo Build started on `date`
- echo Checking out {{ branch_name }}...
- git fetch --all
- git checkout {{ branch_name }}
- echo Building the Docker image...
- docker build -t {{ ecr_repository_uri }}/{{ image_name }}:latest .
post_build:
Expand Down

0 comments on commit f85bea9

Please sign in to comment.