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
4
4
on :
5
- pull_request :
6
5
push :
7
6
branches :
8
- - master
7
+ - main
9
8
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
12
13
13
14
jobs :
14
15
build :
18
19
- name : Prepare
19
20
id : prep
20
21
run : |
21
- DOCKER_IMAGE=tendermint /tendermint
22
+ DOCKER_IMAGE=cometbft /tendermint
22
23
VERSION=noop
23
24
if [[ $GITHUB_REF == refs/tags/* ]]; then
24
25
VERSION=${GITHUB_REF#refs/tags/}
@@ -32,25 +33,25 @@ jobs:
32
33
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
33
34
TAGS="$TAGS,${DOCKER_IMAGE}:${VERSION}"
34
35
fi
35
- echo ::set-output name= tags:: ${TAGS}
36
+ echo " tags= ${TAGS}" >> $GITHUB_OUTPUT
36
37
37
38
- name : Set up QEMU
38
39
uses : docker/setup-qemu-action@master
39
40
with :
40
41
platforms : all
41
42
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
44
45
45
46
- name : Login to DockerHub
46
47
if : ${{ github.event_name != 'pull_request' }}
47
- uses : docker/login-action@v2
48
+ uses : docker/login-action@v2.1.0
48
49
with :
49
50
username : ${{ secrets.DOCKERHUB_USERNAME }}
50
51
password : ${{ secrets.DOCKERHUB_TOKEN }}
51
52
52
53
- name : Publish to Docker Hub
53
- uses : docker/build-push-action@v3
54
+ uses : docker/build-push-action@v3.2.0
54
55
with :
55
56
context : .
56
57
file : ./DOCKER/Dockerfile
0 commit comments