Build container image
This commit is contained in:
parent
3339259346
commit
f7f8c03897
1 changed files with 14 additions and 0 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
|
@ -27,3 +27,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pytest -v --cov --cov-report=xml ./tests
|
pytest -v --cov --cov-report=xml ./tests
|
||||||
- uses: codecov/codecov-action@v1
|
- uses: codecov/codecov-action@v1
|
||||||
|
build-image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: test
|
||||||
|
steps:
|
||||||
|
- name: Build image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
tags: |
|
||||||
|
ghcr.io/${{ github.repository }}:latest
|
||||||
|
labels: |
|
||||||
|
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
||||||
|
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:latest
|
||||||
|
cache-to: type=inline
|
||||||
|
push: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue