Skip to content

[feat] Pinner Docker image #25

[feat] Pinner Docker image

[feat] Pinner Docker image #25

Workflow file for this run

name: build-gar
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
- "develop"
jobs:
ewm-das:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GCR
uses: docker/login-action@v2
with:
registry: us-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
- uses: actions/checkout@v2
- name: Build & Publish the Docker image
run: |
docker buildx create --name builder --use --platform=linux/amd64 && docker buildx build --platform=linux/amd64 . -f Dockerfile.pinner -t us-docker.pkg.dev/covalent-project/network/ewm-das:latest --push
- name: Create .env file
run: |
touch .env
{
echo "W3_AGENT_KEY=${{ secrets.W3_AGENT_KEY }}"
echo "PROOF_OUT_HEX=${{ secrets.PROOF_OUT_HEX }}"
echo "W3_DELEGATION_FILE=${{ secrets.W3_DELEGATION_FILE }}"
} >> .env
cat .env
- name: Load .env file
uses: xom9ikk/[email protected]
- name: Run containers
run: docker compose --env-file ".env" -f "docker-compose-ci.yml" up --build --remove-orphans --exit-code-from ewm-das-tester
- name: Check running agent
run: docker inspect ewm-das
- name: Check running containers
run: docker ps
- name: Delete .env & bin files
run: |
rm -rf .env && rm -rf ./bin/block-ethereum
- name: Stop containers
if: always()
run: docker compose -f "docker-compose-ci.yml" down