Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/contracts-ecdsa.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Solidity ECDSA

on:
# We intend to use `workflow dispatch` in two different situations/paths:
pull_request:
branches:
- main
# We intend to use `workflow dispatch` in two different situations/paths
# 1. If a workflow will be manually dispatched from branch named
# `dapp-development`, workflow will deploy the contracts on the selected
# testnet and publish them to NPM registry with `dapp-dev-<environment>`
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/contracts-random-beacon.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Solidity Random Beacon

on:
pull_request:
branches:
- main
# We intend to use `workflow dispatch` in two different situations/paths:
# 1. If a workflow will be manually dispatched from branch named
# `dapp-development`, workflow will deploy the contracts on the selected
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,62 @@ jobs:
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

publish-docker-images:
needs: build-and-release
runs-on: ubuntu-latest
environment: keep-production # Requires release-admin team approval
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Resolve versions
run: |
echo "version=$(git describe --tags --match 'v[0-9]*' HEAD)" >> $GITHUB_ENV
echo "revision=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo "dockerhub_org=${DOCKERHUB_ORG:-thresholdnetwork}" >> $GITHUB_ENV
env:
DOCKERHUB_ORG: ${{ secrets.DOCKERHUB_ORG }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-docker-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-docker-

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and Push Docker Images
uses: docker/build-push-action@v5
with:
target: runtime-docker
tags: |
${{ env.dockerhub_org }}/keep-client:latest
${{ env.dockerhub_org }}/keep-client:${{ env.version }}
${{ env.dockerhub_org }}/keep-client:mainnet
labels: |
version=${{ env.version }}
revision=${{ env.revision }}
build-args: |
ENVIRONMENT=mainnet
VERSION=${{ env.version }}
REVISION=${{ env.revision }}
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-docker-new
context: .

- name: Move Docker cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-docker-new /tmp/.buildx-cache
8 changes: 4 additions & 4 deletions docs-v1/run-random-beacon.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@ See the link:development#building[building] section in our developer docs.

=== Get Image

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

*Latest:*
`docker pull keepnetwork/keep-client`
`docker pull thresholdnetwork/keep-client`

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

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

== Deployment Considerations
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/docker-start-mainnet-sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ docker run --detach \
--log-opt max-file=3 \
-p 3919:3919 \
-p 9601:9601 \
keepnetwork/keep-client:latest \
thresholdnetwork/keep-client:latest \
start \
--ethereum.url $ETHEREUM_WS_URL \
--ethereum.keyFile /mnt/keep/config/$OPERATOR_KEY_FILE_NAME \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ commonLabels:

images:
- name: keep-maintainer
newName: keepnetwork/keep-client
newName: thresholdnetwork/keep-client
newTag: v2.1.0

configMapGenerator:
Expand Down
6 changes: 3 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ docker buildx build \
docker buildx build \
--platform=linux/amd64 \
--target runtime-docker \
--tag keepnetwork/keep-client:latest \
--tag keepnetwork/keep-client:${VERSION} \
--tag keepnetwork/keep-client:${ENVIRONMENT} \
--tag thresholdnetwork/keep-client:latest \
--tag thresholdnetwork/keep-client:${VERSION} \
--tag thresholdnetwork/keep-client:${ENVIRONMENT} \
--build-arg ENVIRONMENT=${ENVIRONMENT} \
--build-arg VERSION=${VERSION} \
--build-arg REVISION=${REVISION} \
Expand Down
Loading