Skip to content

build bitacross hw worker docker image #3

build bitacross hw worker docker image

build bitacross hw worker docker image #3

Workflow file for this run

name: Build bitacross-worker
on: push
env:
CARGO_TERM_COLOR: always
DOCKER_BUILDKIT: 1
jobs:
build-worker:
runs-on: tee-prod-builder
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build local builder
uses: docker/build-push-action@v5
with:
context: .
file: bitacross-worker/build.Dockerfile
tags: local-builder:latest
target: builder
build-args: |
WORKER_MODE_ARG=offchain-worker
SGX_MODE=HW
ADDITIONAL_FEATURES_ARG=
IMAGE_FOR_RELEASE=true
- name: Build worker
uses: docker/build-push-action@v5
with:
context: .
file: bitacross-worker/build.Dockerfile
tags: litentry/bitacross-worker:latest
target: deployed-worker
- name: Build cli
uses: docker/build-push-action@v5
with:
context: .
file: bitacross-worker/build.Dockerfile
tags: litentry/bitacross-cli:latest
target: deployed-client
- name: Save docker images
run: docker save litentry/bitacross-worker:latest litentry/bitacross-cli:latest | gzip > bitacross-worker.tar.gz
- name: Upload docker images
uses: actions/upload-artifact@v4
with:
name: bitacross-worker
path: bitacross-worker.tar.gz
if-no-files-found: error
- name: Fail early
if: failure()
uses: andymckay/[email protected]