Skip to content

Commit 96418a7

Browse files
Fix/publish image (#3853)
2 parents 900d18e + a42aa58 commit 96418a7

File tree

7 files changed

+75
-10
lines changed

7 files changed

+75
-10
lines changed

.github/workflows/contracts-ecdsa.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Solidity ECDSA
22

33
on:
4-
# We intend to use `workflow dispatch` in two different situations/paths:
4+
pull_request:
5+
branches:
6+
- main
7+
# We intend to use `workflow dispatch` in two different situations/paths
58
# 1. If a workflow will be manually dispatched from branch named
69
# `dapp-development`, workflow will deploy the contracts on the selected
710
# testnet and publish them to NPM registry with `dapp-dev-<environment>`

.github/workflows/contracts-random-beacon.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Solidity Random Beacon
22

33
on:
4+
pull_request:
5+
branches:
6+
- main
47
# We intend to use `workflow dispatch` in two different situations/paths:
58
# 1. If a workflow will be manually dispatched from branch named
69
# `dapp-development`, workflow will deploy the contracts on the selected

.github/workflows/release.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,62 @@ jobs:
114114
run: |
115115
rm -rf /tmp/.buildx-cache
116116
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
117+
118+
publish-docker-images:
119+
needs: build-and-release
120+
runs-on: ubuntu-latest
121+
environment: keep-production # Requires release-admin team approval
122+
steps:
123+
- uses: actions/checkout@v4
124+
with:
125+
fetch-depth: 0
126+
127+
- name: Resolve versions
128+
run: |
129+
echo "version=$(git describe --tags --match 'v[0-9]*' HEAD)" >> $GITHUB_ENV
130+
echo "revision=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
131+
echo "dockerhub_org=${DOCKERHUB_ORG:-thresholdnetwork}" >> $GITHUB_ENV
132+
env:
133+
DOCKERHUB_ORG: ${{ secrets.DOCKERHUB_ORG }}
134+
135+
- name: Set up Docker Buildx
136+
uses: docker/setup-buildx-action@v3
137+
138+
- name: Cache Docker layers
139+
uses: actions/cache@v4
140+
with:
141+
path: /tmp/.buildx-cache
142+
key: ${{ runner.os }}-buildx-docker-${{ github.sha }}
143+
restore-keys: |
144+
${{ runner.os }}-buildx-docker-
145+
146+
- name: Login to Docker Hub
147+
uses: docker/login-action@v3
148+
with:
149+
username: ${{ secrets.DOCKERHUB_USERNAME }}
150+
password: ${{ secrets.DOCKERHUB_TOKEN }}
151+
152+
- name: Build and Push Docker Images
153+
uses: docker/build-push-action@v5
154+
with:
155+
target: runtime-docker
156+
tags: |
157+
${{ env.dockerhub_org }}/keep-client:latest
158+
${{ env.dockerhub_org }}/keep-client:${{ env.version }}
159+
${{ env.dockerhub_org }}/keep-client:mainnet
160+
labels: |
161+
version=${{ env.version }}
162+
revision=${{ env.revision }}
163+
build-args: |
164+
ENVIRONMENT=mainnet
165+
VERSION=${{ env.version }}
166+
REVISION=${{ env.revision }}
167+
push: true
168+
cache-from: type=local,src=/tmp/.buildx-cache
169+
cache-to: type=local,dest=/tmp/.buildx-cache-docker-new
170+
context: .
171+
172+
- name: Move Docker cache
173+
run: |
174+
rm -rf /tmp/.buildx-cache
175+
mv /tmp/.buildx-cache-docker-new /tmp/.buildx-cache

docs-v1/run-random-beacon.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,13 @@ See the link:development#building[building] section in our developer docs.
267267

268268
=== Get Image
269269

270-
https://hub.docker.com/r/keepnetwork/keep-client/
270+
https://hub.docker.com/r/thresholdnetwork/keep-client/
271271

272272
*Latest:*
273-
`docker pull keepnetwork/keep-client`
273+
`docker pull thresholdnetwork/keep-client`
274274

275275
*Tag:*
276-
`docker pull keepnetwork/keep-client:<tag-version>`
276+
`docker pull thresholdnetwork/keep-client:<tag-version>`
277277

278278
=== Run Image
279279
This is a sample run command for illustration purposes only.
@@ -293,7 +293,7 @@ docker run -d \
293293
--log-opt max-size=100m \
294294
--log-opt max-file=3 \
295295
-p 3919:3919 \
296-
keepnetwork/keep-client:<version> --config /mnt/keep-client/config/keep-client-config.toml start
296+
thresholdnetwork/keep-client:<version> --config /mnt/keep-client/config/keep-client-config.toml start
297297
----
298298

299299
== Deployment Considerations

docs/resources/docker-start-mainnet-sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ docker run --detach \
1515
--log-opt max-file=3 \
1616
-p 3919:3919 \
1717
-p 9601:9601 \
18-
keepnetwork/keep-client:latest \
18+
thresholdnetwork/keep-client:latest \
1919
start \
2020
--ethereum.url $ETHEREUM_WS_URL \
2121
--ethereum.keyFile /mnt/keep/config/$OPERATOR_KEY_FILE_NAME \

infrastructure/kube/keep-prd/keep-maintainer/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ commonLabels:
1010

1111
images:
1212
- name: keep-maintainer
13-
newName: keepnetwork/keep-client
13+
newName: thresholdnetwork/keep-client
1414
newTag: v2.1.0
1515

1616
configMapGenerator:

scripts/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ docker buildx build \
2929
docker buildx build \
3030
--platform=linux/amd64 \
3131
--target runtime-docker \
32-
--tag keepnetwork/keep-client:latest \
33-
--tag keepnetwork/keep-client:${VERSION} \
34-
--tag keepnetwork/keep-client:${ENVIRONMENT} \
32+
--tag thresholdnetwork/keep-client:latest \
33+
--tag thresholdnetwork/keep-client:${VERSION} \
34+
--tag thresholdnetwork/keep-client:${ENVIRONMENT} \
3535
--build-arg ENVIRONMENT=${ENVIRONMENT} \
3636
--build-arg VERSION=${VERSION} \
3737
--build-arg REVISION=${REVISION} \

0 commit comments

Comments
 (0)