Skip to content

Build cleanmongodb test image and run tests on it - started by nexusriot #22

Build cleanmongodb test image and run tests on it - started by nexusriot

Build cleanmongodb test image and run tests on it - started by nexusriot #22

name: Build cleanmongodb test image and run tests on it
run-name: Build cleanmongodb test image and run tests on it - started by ${{ github.actor }}
on:
pull_request:
types: [opened, synchronize]
paths:
- 'docker_images/cleanmongodb/**'
workflow_dispatch:
jobs:
build_image:
runs-on: self-hosted
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Login to Docker Hub (optional)
env:
username: ${{ secrets.EXT_DOCKER_LOGIN }}
password: ${{ secrets.EXT_DOCKER_TOKEN }}
if: ${{ env.username != '' && env.password != ''}}
uses: docker/login-action@v3
with:
username: ${{ env.username }}
password: ${{ env.password }}
- name: Build image
run: bash -x build.sh cleanmongodb build
- name: Build test image and run tests
run: bash -x docker_images/run_test.sh cleanmongodb *.py