fix: docker build was failing due to incorrect installation of postgres #54
Workflow file for this run
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: Deployment | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python_version: [3.7.17] | |
# python_version: [3.5.7, 3.6.10, 3.7.5, 3.8.2] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Django aws eb deployment | |
uses: ./ | |
with: | |
python_version: ${{ matrix.python_version }} | |
flake8: true | |
aws_access_key_id: ${{ secrets.aws_access_key_id }} | |
aws_secret_access_key: ${{ secrets.aws_secret_access_key }} | |
django_path: sample_project | |
unit_testing: true | |
deploy: false | |
min_coverage: 10 | |
postgresql_required: true | |
security_check: true | |
flake8_config_file: "sample_project/.flake8" | |
- name: Coverage report artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage report | |
path: output/coverage_report.txt | |
if-no-files-found: warn | |
- name: Coverage report artifacts if failed | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: coverage report if failed | |
path: output/coverage_report.txt | |
if-no-files-found: warn | |
- name: Security check report artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: bandit | |
path: output/security_report.txt | |
if-no-files-found: warn |