Skip to content

Commit

Permalink
wip2
Browse files Browse the repository at this point in the history
  • Loading branch information
eranrund committed Mar 5, 2024
1 parent 1dd7e8e commit 5654d6b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ env:

jobs:
docker:
#runs-on: ubuntu-latest
runs-on: [ "ubuntu-latest-m" ]
strategy:
matrix:
network: ["test", "prod"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -39,7 +41,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
images: ${{ env.REGISTRY_IMAGE }}-${{ matrix.network }}

- name: Build and push
uses: docker/build-push-action@v5
Expand All @@ -49,4 +51,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NETWORK=${{ matrix.network }}.mobilecoin.com
#tags: ${{ env.REGISTRY_IMAGE }}:latest
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,24 @@
FROM ubuntu:focal-20230126 as mc-builder
SHELL ["/bin/bash", "-c"]

ARG NETWORK
ENV NETWORK ${NETWORK}

RUN "Network: $NETWORK"

RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
build-essential \
#clang \
cmake \
curl \
git \
#jq \
libclang-dev \
libprotobuf-dev \
#libpq-dev \
#libssl1.1 \
#libssl-dev \
#llvm \
#llvm-dev \
#pkg-config \
unzip \
wget \
zlib1g-dev \
#zstd \
&& apt-get clean \
&& rm -r /var/lib/apt/lists

Expand Down
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -ex

cd mobilecoin

export NETWORK="test.mobilecoin.com" IAS_MODE=PROD SGX_MODE=HW
export IAS_MODE=PROD SGX_MODE=HW
echo "Network: $NETWORK"

export GIT_REV=`git rev-parse HEAD`
echo "GIT_REV = ${GIT_REV}"
Expand Down

0 comments on commit 5654d6b

Please sign in to comment.