Skip to content

Commit

Permalink
check for patched image
Browse files Browse the repository at this point in the history
Signed-off-by: ashnamehrotra <[email protected]>
  • Loading branch information
ashnamehrotra committed Aug 3, 2023
1 parent b9cf670 commit d339ff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ jobs:
run: |
docker run --net=host --detach --rm --privileged -p 127.0.0.1:8888:8888 --name buildkitd --entrypoint buildkitd moby/buildkit:v0.12.0 --addr tcp://0.0.0.0:8888
docker build --build-arg copa_version=${{ env.COPA_VERSION }} -t copa-action .
netstat -an | grep 8888
docker logs buildkitd
docker images
docker ps -a
cd ${{ github.workspace }}/test
docker run --net=host \
--mount=type=bind,source=$(pwd)/data,target=/data \
--mount=type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--mount=type=bind,source=$GITHUB_OUTPUT,target=$GITHUB_OUTPUT -e GITHUB_OUTPUT \
--name=copa-action \
copa-action 'docker.io/library/nginx:1.21.6' 'nginx.1.21.6.json' '1.21.6-patched'
docker images
bats --print-output-on-failure ./test.bats
1 change: 1 addition & 0 deletions test/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ teardown_file(){
}

@test "Check patched docker image IDs" {
docker images
id=$(docker images --quiet 'nginx:1.21.6-patched')
assert_equal "$id" "4319b9b0e0c2"
}
Expand Down

0 comments on commit d339ff3

Please sign in to comment.