update lint #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: Docker Image CICD | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install | |
run: make install | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# Build the Docker image | |
- name: Build Docker image | |
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/jahnavi-docker-app:latest . | |
# Push the Docker image to Docker Hub | |
- name: Push Docker image | |
run: docker push ${{ secrets.DOCKER_USERNAME }}/jahnavi-docker-app:latest | |
- name: Format | |
run: make format | |
- name: Lint | |
run: make lint | |
- name: Test | |
run: make test |