File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : docker
2+ run-name : build images, deploy to ghcr
3+
4+ on :
5+ push :
6+ tags :
7+ - ' *'
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ if : github.repository == 'talkdai/dialog'
13+ environment : build
14+ defaults :
15+ run :
16+ shell : bash
17+ steps :
18+ - uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Login to GitHub Container Registry
23+ uses : docker/login-action@v3
24+ with :
25+ registry : ghcr.io
26+ username : ${{ github.actor }}
27+ password : ${{ secrets.PKG_GITHUB_TOKEN }}
28+
29+ - name : ghcr.io/talkdai/dialog:${{ github.ref }}
30+ env :
31+ GITHUB_REF : ${{ github.ref }}
32+ run : |
33+ docker build -t ghcr.io/talkdai/dialog:${{ github.ref }} .
34+ docker push ghcr.io/talkdai/dialog:${{ github.ref }}
You can’t perform that action at this time.
0 commit comments