chore(deps): update mysql:5.7 docker digest to 4bc6bc9 #3365
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: Django application | |
on: | |
push: | |
branches: | |
- dev | |
paths: | |
- 'backend-project/**' | |
- '.github/**' | |
- 'Makefile' | |
- '**/docker-compose.yml' | |
pull_request: | |
paths: | |
- 'backend-project/**' | |
- '.github/**' | |
- 'Makefile' | |
- '**/docker-compose.yml' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2 | |
- name: Pyupgrade | |
run: make pyupgrade | |
- name: Lint | |
run: make lint | |
- name: Build | |
run: make build | |
- name: Migration check | |
run: make check | |
- name: Show settings | |
run: make settings | |
- name: Diff OpenAPI | |
run: make diff_openapi | |
- name: Wait for services | |
run: make wait_mysql wait_minio migrate | |
- name: Python test | |
run: make test | |
- name: System test | |
run: ./backend-project/contrib/github/script.sh | |
# - name: Send coverage report | |
# run: make coverage_send_backend | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
if: github.event_name == 'push' | |
- uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # renovate: tag=v2 | |
with: | |
name: openapi.yaml | |
path: ./openapi.yaml | |
- uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # renovate: tag=v2 | |
# see https://github.com/actions/upload-artifact/issues/11 | |
# for remove duplicated actions | |
with: | |
name: openapi.json | |
path: ./openapi.json | |
- name: Docker-compose logs | |
run: docker-compose logs | |
if: failure() | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/dev' | |
needs: | |
- test | |
steps: | |
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2 | |
- name: Build production image | |
run: make build_backend | |
- name: "Docker login" | |
if: github.ref == 'refs/heads/dev' | |
env: | |
DOCKER_REGISTRY_URL: docker-registry.siecobywatelska.pl | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
run: echo "${DOCKER_PASSWORD}" | docker login -u ${DOCKER_USERNAME} --password-stdin ${DOCKER_REGISTRY_URL} | |
- name: Push image | |
run: make push_backend | |
if: github.ref == 'refs/heads/dev' | |
- name: Trigger SDK regenerate | |
uses: peter-evans/repository-dispatch@ce5485de42c9b2622d2ed064be479e8ed65e76f4 # renovate: tag=v1 | |
if: github.ref == 'refs/heads/dev' | |
with: | |
token: ${{ secrets.SDK_REPO_TOKEN }} | |
event-type: pushed | |
repository: watchdogpolska/small-eod-sdk-javascript |