Test with github action update

This commit is contained in:
Griatch 2022-01-16 16:35:18 +01:00
parent fa79110ba6
commit aa4c87f710

View file

@ -44,7 +44,7 @@ jobs:
mysql user: 'evennia'
mysql password: 'password'
# wait for db to activage, get logs from their start
# wait for db to activate, get logs from their start
- name: Wait / sleep
uses: jakejarvis/wait-action@v0.1.0
if: ${{ matrix.TESTING_DB == 'postgresql' || matrix.TESTING_DB == 'mysql' }}
@ -107,3 +107,35 @@ jobs:
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./testing_mygame/coverage.xml
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push for master
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 && github.ref == 'refs/heads/master'}}
id: docker_build_master
uses: docker/build-push-action@v2
with:
push: true
tags: user/app:latest
-
name: Build and push for develop
if: ${{ matrix.TESTING_DB == 'sqlite3' && matrix.python-version == 3.7 && github.ref == 'refs/heads/develop'}}
id: docker_build_develop
uses: docker/build-push-action@v2
with:
push: true
tags: user/app:develop