File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments