Skip to content

Commit

Permalink
ci: add ci and use latest version always
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDombo committed Apr 12, 2024
1 parent b74c49e commit 6927bd3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v6
- name: Build image
run: docker build -t "aws-iot-greengrass:latest" ./
- name: Run image
run: docker run --init -e STARTUP=false aws-iot-greengrass:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
FROM amazonlinux:2023

# Replace the args to lock to a specific version
ARG GREENGRASS_RELEASE_VERSION=2.12.4
ARG GREENGRASS_RELEASE_VERSION=latest
ARG GREENGRASS_ZIP_FILE=greengrass-${GREENGRASS_RELEASE_VERSION}.zip
ARG GREENGRASS_RELEASE_URI=https://d2s8p88vqu9w66.cloudfront.net/releases/${GREENGRASS_ZIP_FILE}

Expand Down
5 changes: 5 additions & 0 deletions greengrass-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ if [ ! -d $GGC_ROOT_PATH/alts/current/distro ]; then
echo "Installing Greengrass for the first time..."
parse_options
java ${OPTIONS}
if [ $? -ne 0 ]; then
exit $?
elif [ ${STARTUP} = "false" ]; then
exit 0
fi
else
echo "Reusing existing Greengrass installation..."
fi
Expand Down

0 comments on commit 6927bd3

Please sign in to comment.