Skip to content

Commit

Permalink
fix: local make build
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 authored and yangchiu committed May 29, 2024
1 parent 130c86c commit dca0a5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,21 @@ jobs:
- name: Run dapper
run: dapper

make:
name: make check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

# local buid check
- name: Run make
run: make

build_images:
name: Build images
runs-on: ubuntu-latest
needs: flake8
needs: [flake8, make]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ case $(uname -m) in
esac

echo "Building for ${ARCH}"
# update base image to get latest changes
BASE_IMAGE=`grep FROM package/Dockerfile | awk '{print $2}'`
# update base image to get latest changes
BASE_IMAGE=`grep FROM package/Dockerfile | awk '{print $2}'`
docker pull ${BASE_IMAGE}

docker build --build-arg ARCH=${ARCH} -t ${image} -f manager/integration/Dockerfile .
docker build --build-arg TARGETPLATFORM="linux/${ARCH}" -t ${image} -f manager/integration/Dockerfile .
mkdir -p bin
echo ${image} > bin/latest_image
echo Built image ${image}

0 comments on commit dca0a5c

Please sign in to comment.