Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
/ tendermint Public archive

Commit 5a2776b

Browse files
ci: Update Docker build workflows (backport #59) (#62)
* ci: Update Docker build workflows (#59) Signed-off-by: Thane Thomson <[email protected]> Signed-off-by: Thane Thomson <[email protected]> (cherry picked from commit ddd0117) # Conflicts: # .github/workflows/tendermint-docker.yml * Resolve conflicts Signed-off-by: Thane Thomson <[email protected]> Signed-off-by: Thane Thomson <[email protected]> Co-authored-by: Thane Thomson <[email protected]>
1 parent aa8ab29 commit 5a2776b

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

.github/workflows/tendermint-docker.yml

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
name: Build & Push
2-
# Build & Push rebuilds the tendermint docker image on every push to master and creation of tags
3-
# and pushes the image to https://hub.docker.com/r/interchainio/simapp/tags
1+
name: Docker
2+
# Build & Push rebuilds the Tendermint docker image on every push to main and creation of tags
3+
# and pushes the image to https://hub.docker.com/r/cometbft/tendermint
44
on:
5-
pull_request:
65
push:
76
branches:
8-
- master
7+
- main
98
tags:
10-
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
11-
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
9+
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
10+
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+" # e.g. v0.37.0-alpha.1, v0.38.0-alpha.10
11+
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+" # e.g. v0.37.0-beta.1, v0.38.0-beta.10
12+
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+" # e.g. v0.37.0-rc1, v0.38.0-rc10
1213

1314
jobs:
1415
build:
@@ -18,7 +19,7 @@ jobs:
1819
- name: Prepare
1920
id: prep
2021
run: |
21-
DOCKER_IMAGE=tendermint/tendermint
22+
DOCKER_IMAGE=cometbft/tendermint
2223
VERSION=noop
2324
if [[ $GITHUB_REF == refs/tags/* ]]; then
2425
VERSION=${GITHUB_REF#refs/tags/}
@@ -32,25 +33,25 @@ jobs:
3233
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
3334
TAGS="$TAGS,${DOCKER_IMAGE}:${VERSION}"
3435
fi
35-
echo ::set-output name=tags::${TAGS}
36+
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
3637
3738
- name: Set up QEMU
3839
uses: docker/setup-qemu-action@master
3940
with:
4041
platforms: all
4142

42-
- name: Set up Docker Buildx
43-
uses: docker/setup-buildx-action@v2
43+
- name: Set up Docker Build
44+
uses: docker/setup-buildx-action@v2.2.1
4445

4546
- name: Login to DockerHub
4647
if: ${{ github.event_name != 'pull_request' }}
47-
uses: docker/login-action@v2
48+
uses: docker/login-action@v2.1.0
4849
with:
4950
username: ${{ secrets.DOCKERHUB_USERNAME }}
5051
password: ${{ secrets.DOCKERHUB_TOKEN }}
5152

5253
- name: Publish to Docker Hub
53-
uses: docker/build-push-action@v3
54+
uses: docker/build-push-action@v3.2.0
5455
with:
5556
context: .
5657
file: ./DOCKER/Dockerfile

.github/workflows/testapp-docker.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Docker E2E Node
22
# Build & Push rebuilds the e2e Testapp docker image on every push to main and creation of tags
3-
# and pushes the image to https://hub.docker.com/r/tendermint/e2e-node
3+
# and pushes the image to https://hub.docker.com/r/cometbft/e2e-node
44
on:
55
push:
66
branches:
@@ -19,7 +19,7 @@ jobs:
1919
- name: Prepare
2020
id: prep
2121
run: |
22-
DOCKER_IMAGE=tendermint/e2e-node
22+
DOCKER_IMAGE=cometbft/e2e-node
2323
VERSION=noop
2424
if [[ $GITHUB_REF == refs/tags/* ]]; then
2525
VERSION=${GITHUB_REF#refs/tags/}

0 commit comments

Comments
 (0)