Bump mysql-connector-python in /mysql_cluster_manager #8
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 project | |
on: [push, pull_request] | |
jobs: | |
compile: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v2 | |
- name: Setup python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install -r mysql_cluster_manager/requirements.txt | |
cd mysql_cluster_manager | |
pylint src | |
src/mysql_cluster_manager.py --help | |
- name: Build docker image | |
run: docker build -t jnidzwetzki/mysql-ha-cloud:latest -f Dockerfile-mysql . | |
- name: Login at docker hub | |
run: | | |
docker login -u ${{secrets.DOCKER_USER}} -p ${{secrets.DOCKER_PASSWORD}} | |
- name: Push image | |
if: github.ref == 'refs/heads/main' | |
run: | | |
docker push jnidzwetzki/mysql-ha-cloud:latest |