Skip to content

Commit

Permalink
Merge pull request #20 from groupclaes/test
Browse files Browse the repository at this point in the history
add buld-test
  • Loading branch information
JamieVangeysel authored Dec 16, 2024
2 parents 64f70c6 + 9e16528 commit f7e2de3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
docker_tag="test"
docker_reg="groupclaes"
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')
PACKAGE_NAME=$(cat package.json \
| grep name \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')

echo "building docker images ${docker_reg}/${PACKAGE_NAME}:${docker_tag}"

docker buildx build --platform=linux/amd64 -t "${docker_reg}/${PACKAGE_NAME}:${docker_tag}" -f Dockerfile --sbom=true --provenance=true --push .

0 comments on commit f7e2de3

Please sign in to comment.