Skip to content

Commit 5a73d2a

Browse files
[UP] To support open pose
1 parent c495f4f commit 5a73d2a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build Open Pose Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- 18.0
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
env:
14+
GIT_TOKEN: ${{ secrets.GH_TOKEN }}
15+
16+
steps:
17+
- name: Checkout main repo
18+
uses: actions/checkout@v3
19+
20+
# - name: Clone additional repositories
21+
# run: |
22+
# git clone https://$GIT_TOKEN@github.com/odoonix/connector.git extera_addons/connector
23+
# git clone https://$GIT_TOKEN@github.com/odoonix/pos.git extera_addons/pos
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Login to DockerHub
29+
uses: docker/login-action@v1
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Build and Publish Docker Image
36+
run: |
37+
timetag=(`date +%Y%M%d`)
38+
cd 18.0
39+
docker build . --tag ghcr.io/odoonix/open-pose:18.0.${timetag} --tag ghcr.io/odoonix/open-pose:18.0
40+
docker push ghcr.io/odoonix/open-pose:18.0
41+
docker push ghcr.io/odoonix/open-pose:18.0.${timetag}

0 commit comments

Comments
 (0)