From f7f8c038974e655351e43fc3cc3df079489f1ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 5 Nov 2021 23:43:19 +0100 Subject: [PATCH] Build container image --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b564379..6430231 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,3 +27,17 @@ jobs: run: | pytest -v --cov --cov-report=xml ./tests - 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