#!/bin/bash -v

# Add js build steps here (npm, etc.)
/opt/gradle/bin/gradle build

# Fetch AWS ECR variables
version=$1
chmod 700 fetch.sh
./fetch.sh $version > variables.json

# Build docker image with packer
packer="/usr/local/bin/packer"
$packer build -var-file=variables.json backend.json

#!/bin/bash -v

# Add js build steps here (npm, etc.)
pushd ../api
/opt/gradle/bin/gradle build
popd

# Fetch AWS ECR variables
version=$1
chmod 700 fetch.sh
./fetch.sh $version > variables.json

# Build docker image with packer
packer="/usr/local/bin/packer"
$packer build -var-file=variables.json backend.json

Add push and pop to correct dir
Add push and pop to correct dir
