Skip to content

Initial version from github actions workflow #2

Initial version from github actions workflow

Initial version from github actions workflow #2

Workflow file for this run

name: Continuous Integration Tests
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test-rit-docker:
name: Test Rootstock Integration Tests docker image
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5001:5000
env:
TEST_TAG: localhost:5001/actions/container-action:latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Docker BuildX
id: setup-buildx
uses: docker/setup-buildx-action@v3
with:
install: true
driver-opts: network=host
platforms: linux/amd64
- name: Build the RIT Container
id: build
uses: docker/build-push-action@v6
with:
context: .github/images
push: true
tags: ${{ env.TEST_TAG }}
- name: Run the RIT Container
id: run
env:
RSKJ_BRANCH: 'master'
FEDERATOR_BRANCH: 'master'
run: |
docker run \
--env RSKJ_BRANCH="${{ env.RSKJ_BRANCH }}" \
--env FEDERATOR_BRANCH="${{ env.FEDERATOR_BRANCH }}" \
--rm ${{ env.TEST_TAG }}