Merge branch 'handle-cyclic' into evaluation #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push Docker Image | |
on: | |
push: | |
branches: | |
- main | |
- ma-lakhoune | |
- evaluation | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run bot parser tests (utils/bot/test.py) | |
run: | | |
python3 -m pip install -r requirements.txt | |
python3 -m unittest utils/bot/test.py | |
build-and-push: | |
runs-on: ubuntu-latest | |
needs: run-tests | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: extract_branch | |
- name: Build the Docker image | |
run: | | |
docker build -t registry.tech4comp.dbis.rwth-aachen.de/rwthacis/pm4bots:${{ steps.extract_branch.outputs.branch }} . | |
- name: Push to registry | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PW: ${{ secrets.DOCKER_PW }} | |
run: | | |
docker login -u $DOCKER_USERNAME -p $DOCKER_PW registry.tech4comp.dbis.rwth-aachen.de | |
docker push registry.tech4comp.dbis.rwth-aachen.de/rwthacis/pm4bots:${{ steps.extract_branch.outputs.branch }} | |