Skip to content
Open

4cpu #10

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
14 changes: 12 additions & 2 deletions .github/workflows/build-eif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
NITRO_IMAGE_PATH="${{github.event.inputs.nitro_node_image_path || 'ghcr.io/espressosystems/nitro-espresso-integration/nitro-node:integration'}}"
NITRO_TAG=$(echo "${NITRO_IMAGE_PATH}" | sed 's/.*://')

# Add 4cpu suffix if on 4cpu branch
if [ "${{ github.ref_name }}" = "4cpu" ]; then
NITRO_TAG="${NITRO_TAG}-4cpu"
fi

echo "NITRO_IMAGE_PATH=${NITRO_IMAGE_PATH}" >> ${GITHUB_ENV}
echo "NITRO_IMAGE_TAG=${NITRO_TAG}" >> ${GITHUB_ENV}

Expand All @@ -50,6 +55,11 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Debug build variables
run: |
echo "Debug: NITRO_IMAGE_PATH = ${{ env.NITRO_IMAGE_PATH }}"
echo "Debug: CONFIG_HASH = ${{ github.event.inputs.config_hash }}"

- name: Build Docker image
uses: docker/build-push-action@v5
with:
Expand Down Expand Up @@ -122,11 +132,11 @@ jobs:
EOF

# Build with labels and tag
docker build -f Dockerfile.labels -t ghcr.io/espressosystems/aws-nitro-poster:${{ env.NITRO_IMAGE_TAG || 'integration' }} .
docker build -f Dockerfile.labels -t ghcr.io/espressosystems/aws-nitro-poster:${{ env.NITRO_IMAGE_TAG || 'integration-4cpu' }} .
echo "Tagged with PCR0 HASH: ${{ env.ENCLAVE_HASH }}"

- name: Push Docker
if: github.event_name != 'pull_request'
run: |
docker push ghcr.io/espressosystems/aws-nitro-poster:${{ env.NITRO_IMAGE_TAG || 'integration' }}
docker push ghcr.io/espressosystems/aws-nitro-poster:${{ env.NITRO_IMAGE_TAG || 'integration-4cpu' }}
echo "Pushed image with PCR0 HASH: ${{ env.ENCLAVE_HASH }}"
4 changes: 2 additions & 2 deletions enclaver/enclaver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ target: "enclaver-batch-poster:latest"
sources:
app: "nitro-image:latest"
defaults:
memory_mb: 10240
cpu_count: 2
memory_mb: 16384
cpu_count: 4
egress:
allow:
- "*"
Expand Down
Loading