forked from susheelsk/image-background-removal
-
Notifications
You must be signed in to change notification settings - Fork 281
42 lines (39 loc) · 1.11 KB
/
Copy pathdocker.yaml
File metadata and controls
42 lines (39 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Docker images
on:
release:
types: [ published ]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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
context: ./
file: "./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
context: ./
file: "./Dockerfile.cuda"
tags: |
anodev/carvekit:latest-cuda
anodev/carvekit:${{ env.RELEASE_VERSION }}-cuda