Skip to content

Commit

Permalink
add temp build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Sep 16, 2024
1 parent a125cc5 commit d48da32
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/temp-build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and push docker image

on:
push:
branches:
- "POP-1859/add-client-tests-for-identity-deletion"

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
docker:
runs-on:
labels: ubuntu-22.04-64core
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
1 change: 1 addition & 0 deletions iris-mpc/src/bin/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ async fn main() -> eyre::Result<()> {
for batch_idx in 0..N_BATCHES {
let mut handles = Vec::new();
for batch_query_idx in 0..BATCH_SIZE {
sleep(Duration::from_millis(1000)).await;
let shares_encryption_public_keys2 = shares_encryption_public_keys.clone();
let requests_sns_client2 = requests_sns_client.clone();
let thread_db2 = db.clone();
Expand Down

0 comments on commit d48da32

Please sign in to comment.