Skip to content

Commit

Permalink
add docker build test in ci (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolang authored Apr 28, 2024
1 parent b70c4e5 commit ec4659a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ jobs:
export RELEASE_TAG=${GITHUB_REF_NAME#'v'}
cp -r modules/cli/native/target/bin docker-build/bin
docker build ./docker-build -t rolang/dumbo:${RELEASE_TAG}-alpine
docker run rolang/dumbo:${RELEASE_TAG}-alpine
docker tag rolang/dumbo:${RELEASE_TAG}-alpine rolang/dumbo:latest-alpine
docker push rolang/dumbo:${RELEASE_TAG}-alpine
docker push rolang/dumbo:latest-alpine
Expand Down
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ ThisBuild / githubWorkflowPublish += WorkflowStep.Run(
"export RELEASE_TAG=${GITHUB_REF_NAME#'v'}",
"cp -r modules/cli/native/target/bin docker-build/bin",
"docker build ./docker-build -t rolang/dumbo:${RELEASE_TAG}-alpine",
"docker run rolang/dumbo:${RELEASE_TAG}-alpine", // run for health-checking the docker image
"docker tag rolang/dumbo:${RELEASE_TAG}-alpine rolang/dumbo:latest-alpine",
"docker push rolang/dumbo:${RELEASE_TAG}-alpine",
"docker push rolang/dumbo:latest-alpine",
Expand Down

0 comments on commit ec4659a

Please sign in to comment.