From 3d8cfec61bda98acd2e2929b7ac1cf5d299a0984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=9A=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=8E=D0=BA=D0=BE=D0=B2?= Date: Sat, 24 Sep 2022 15:48:54 +1100 Subject: [PATCH 1/2] Addded new workflow for build and push docker images --- .github/workflows/docker.yaml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/docker.yaml diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..7438405 --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,43 @@ +name: "Docker images" + +on: + release: + types: [ published ] + +permissions: + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - + 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: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - + name: Build and push + uses: docker/build-push-action@v3 + with: + push: true + file: {context}/Dockerfile.cpu + tags: | + anodev/carvekit:latest-cpu + anodev/carvekit:${{ env-release_version }}-cpu + - + name: Build and push cuda + uses: docker/build-push-action@v3 + with: + push: true + file: {context}/Dockerfile.cuda + tags: | + anodev/carvekit:latest-cuda + anodev/carvekit:${{ env-release_version }}-cuda \ No newline at end of file From 94194c3d98fc88ab921d6e32e5e142180a7be688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=9A=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=8E=D0=BA=D0=BE=D0=B2?= Date: Sat, 24 Sep 2022 15:53:55 +1100 Subject: [PATCH 2/2] Updated package version to test new workflow --- carvekit/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/carvekit/__init__.py b/carvekit/__init__.py index be1ee70..5c1e2bc 100644 --- a/carvekit/__init__.py +++ b/carvekit/__init__.py @@ -1 +1 @@ -version = "4.0.2" +version = "4.0.3"