File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 9
9
build :
10
10
name : ' Build and Push'
11
11
runs-on : ' ubuntu-latest'
12
- strategy :
13
- matrix :
14
- node : [16, 18, 20]
12
+ # strategy:
13
+ # matrix:
14
+ # node: [16, 18, 20]
15
15
16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
19
- - name : Setup node | ${{ matrix.node }}
19
+ # - name: Setup node | ${{ matrix.node }}
20
+ - name : Setup node
20
21
uses : actions/setup-node@v4
21
22
with :
22
- node-version : ${{ matrix.node }}
23
+ # node-version: ${{ matrix.node }}
24
+ node-version : ' 18'
23
25
cache : ' npm'
24
26
- run : npm install
25
27
- run : npm run test
36
38
username : ${{ secrets.DOCKERHUB_USERNAME }}
37
39
password : ${{ secrets.DOCKERHUB_TOKEN }}
38
40
39
- - name : Build docker image
40
- run : docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/masa-api:${{ steps.generate_tag.outputs.sha }} .
41
+ - name : Build and push
42
+ uses : docker/build-push-action@v6
43
+ with :
44
+ push : true
45
+ tags : ${{ secrets.DOCKERHUB_USERNAME }}/masa-api:${{ steps.generate_tag.outputs.sha }},${{ secrets.DOCKERHUB_USERNAME }}/masa-api:latest
46
+
47
+ # - name: Build docker image
48
+ # run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/masa-api:${{ steps.generate_tag.outputs.sha }} .
41
49
42
- - name : Push image
43
- run : docker push ${{ secrets.DOCKERHUB_USERNAME }}/masa-api:${{ steps.generate_tag.outputs.sha }}
50
+ # - name: Push image
51
+ # run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/masa-api:${{ steps.generate_tag.outputs.sha }}
You can’t perform that action at this time.
0 commit comments