Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/contracts-ecdsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,4 @@ jobs:
environment: ${{ github.event.inputs.environment }}
upstream_builds: ${{ github.event.inputs.upstream_builds }}
upstream_ref: dapp-development
version: ${{ steps.npm-version-bump.outputs.version }}
version: ${{ steps.npm-version-bump.outputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/contracts-random-beacon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,4 +343,4 @@ jobs:
environment: ${{ github.event.inputs.environment }}
upstream_builds: ${{ github.event.inputs.upstream_builds }}
upstream_ref: dapp-development
version: ${{ steps.npm-version-bump.outputs.version }}
version: ${{ steps.npm-version-bump.outputs.version }}
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
2 changes: 2 additions & 0 deletions solidity/ecdsa/contracts/WalletRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ import "@threshold-network/solidity-contracts/contracts/staking/IStaking.sol";

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

// TODO: Remove this once the contract is deployed to the mainnet

contract WalletRegistry is
IWalletRegistry,
IRandomBeaconConsumer,
Expand Down