Try downgrading rabbitmq #290
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 | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
faf-db: | |
image: mariadb:10.6 | |
ports: | |
- 3306:3306 | |
options: >- | |
--name faf-db | |
--health-cmd "mysqladmin ping --silent" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
MYSQL_ROOT_PASSWORD: banana | |
MYSQL_DATABASE: faf-league | |
MYSQL_USER: faf-league-service | |
MYSQL_PASSWORD: banana | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install pipenv | |
pipenv sync --dev | |
- name: Setup db | |
run: pipenv run migrate-develop | |
- name: Generate schemaspy docs | |
if: github.ref == 'refs/heads/develop' | |
run: ./ci/schemaspy.sh | |
- name: Publish to Github Pages | |
if: github.ref == 'refs/heads/develop' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
- name: Extract tag name | |
id: vars | |
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | |
- name: Build and push Docker images | |
if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags') | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: faforever/faf-league-service | |
build_args: GITHUB_REF=${{ steps.vars.outputs.tag }} | |
tag_with_ref: true |