@@ -23,10 +23,12 @@ jobs:
2323 with :
2424 go-version : ' 1.26'
2525
26- - name : Set up Node.js
27- uses : actions/setup-node@v4
26+ - name : Login to GHCR
27+ uses : docker/login-action@v3
2828 with :
29- node-version : ' 20'
29+ registry : ghcr.io
30+ username : ${{ github.actor }}
31+ password : ${{ secrets.GITHUB_TOKEN }}
3032
3133 - name : Run tests
3234 run : make test
3840 args : release --clean
3941 env :
4042 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41-
42- - name : Build Docker image
43- run : |
44- docker build -t ghcr.io/graycodeai/gitant-daemon:${{ github.ref_name }} .
45- docker build -t ghcr.io/graycodeai/gitant-daemon:latest .
46-
47- - name : Login to GHCR
48- uses : docker/login-action@v3
49- with :
50- registry : ghcr.io
51- username : ${{ github.actor }}
52- password : ${{ secrets.GITHUB_TOKEN }}
53-
54- - name : Push Docker image
55- run : |
56- docker push ghcr.io/graycodeai/gitant-daemon:${{ github.ref_name }}
57- docker push ghcr.io/graycodeai/gitant-daemon:latest
58-
59- release-web :
60- runs-on : ubuntu-latest
61- needs : release
62- steps :
63- - name : Checkout
64- uses : actions/checkout@v4
65-
66- - name : Set up Node.js
67- uses : actions/setup-node@v4
68- with :
69- node-version : ' 20'
70-
71- - name : Install dependencies
72- run : npm ci
73-
74- - name : Run tests
75- run : npm test
76-
77- - name : Build
78- run : npm run build
79-
80- - name : Build Docker image
81- working-directory : ../gitant-web
82- run : |
83- docker build -t ghcr.io/graycodeai/gitant-web:${{ github.ref_name }} .
84- docker build -t ghcr.io/graycodeai/gitant-web:latest .
85-
86- - name : Login to GHCR
87- uses : docker/login-action@v3
88- with :
89- registry : ghcr.io
90- username : ${{ github.actor }}
91- password : ${{ secrets.GITHUB_TOKEN }}
92-
93- - name : Push Docker image
94- run : |
95- docker push ghcr.io/graycodeai/gitant-web:${{ github.ref_name }}
96- docker push ghcr.io/graycodeai/gitant-web:latest
0 commit comments