Skip to content

ops: add check to ensure test containers build #2

ops: add check to ensure test containers build

ops: add check to ensure test containers build #2

name: Test GraphTally
on:
push:
pull_request:
branches: [main]
jobs:
# test job requires a full local testnet
# running, and it requires way more memory
# than what actions supports
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
#
# - name: Set up Docker Buildx # Changed from "Set up Docker" for clarity
# uses: docker/setup-buildx-action@v2
#
# - name: Run make setup
# run: make setup
#
# - name: Run tests
# run: make rav_tests
#
# - name: Tear down containers
# if: always()
# run: make down
build_docker_images:
runs-on: ubuntu-latest
# needs: [] # Runs in parallel with 'test'. Add 'test' here if it should run after 'test' job.
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU # Useful for multi-platform builds, often used with Buildx
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Taken from containers.yml, probably not needed
# for building images
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Build indexer-rs image
uses: docker/build-push-action@v5
with:
context: ./contrib/indexer-service
file: ./contrib/indexer-service/Dockerfile
push: false
tags: graphtally/indexer-service:latest
- name: Build tap-agent image
uses: docker/build-push-action@v5
with:
context: ./contrib/tap-agent
file: ./contrib/tap-agent/Dockerfile
push: false
tags: graphtally/tap-agent:latest