Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmdlt committed Aug 15, 2024
1 parent d07ff21 commit af40106
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@ jobs:

- uses: docker/setup-buildx-action@v3

- uses: docker/login-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v6
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
cache-from: hexletcomponents/python-flask:latest
cache-from: ghcr.io/${{ github.repository }}:latest
cache-to: type=inline
tags: hexletcomponents/python-flask:latest
tags: ghcr.io/${{ github.repository }}:latest
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# python-flask
# python-flask-example

[![Python CI](https://github.com/hexlet-components/python-flask/actions/workflows/python-ci.yml/badge.svg)](https://github.com/hexlet-components/python-flask/actions/workflows/python-ci.yml)

# Self-study for the Flask course.

Demo https://python-flask.hexlet.app/
Demo ...
----

## Usefull commands
Expand All @@ -13,8 +13,8 @@ Demo https://python-flask.hexlet.app/
# install deps
make install

# run tests and linter
make check
# run linter
make lint

# run localy
make run
Expand Down

0 comments on commit af40106

Please sign in to comment.