Skip to content

Commit

Permalink
Sync Docker build process on v0.37.x with main (#295)
Browse files Browse the repository at this point in the history
Signed-off-by: Thane Thomson <[email protected]>
  • Loading branch information
thanethomson authored Feb 10, 2023
1 parent 8415b54 commit 0ee0788
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cometbft-docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Docker
# Build & Push rebuilds the CometBFT docker image on every push to main and creation of tags
# Rebuilds the CometBFT docker image on every push to main and creation of tags
# and pushes the image to https://hub.docker.com/r/cometbft/cometbft
on:
push:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${DOCKER_IMAGE}:${VERSION}"
fi
echo ::set-output name=tags::${TAGS}
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@master
Expand Down
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,13 @@ check-docs-toc:
### Docker image ###
###############################################################################

build-docker: build-linux
cp $(OUTPUT) DOCKER/cometbft
docker build --label=cometbft --tag="cometbft/cometbft" DOCKER
rm -rf DOCKER/cometbft
# On Linux, you may need to run `DOCKER_BUILDKIT=1 make build-docker` for this
# to work.
build-docker:
docker build \
--label=cometbft \
--tag="cometbft/cometbft" \
-f DOCKER/Dockerfile .
.PHONY: build-docker

###############################################################################
Expand Down

0 comments on commit 0ee0788

Please sign in to comment.