mirror of https://github.com/logos-co/open-law.git
update github actions
This commit is contained in:
parent
87a2670c82
commit
61f3b8c24c
|
@ -39,3 +39,28 @@ jobs:
|
|||
- name: Run Flask tests
|
||||
run: |
|
||||
poetry run pytest
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [3.11]
|
||||
poetry-version: [1.4]
|
||||
os: [ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
|
||||
needs: tests
|
||||
steps:
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
push: true
|
||||
tags: simple2b/open-law-dev:latest
|
||||
|
|
Loading…
Reference in New Issue