@@ -10,34 +10,33 @@ jobs:
1010 docker :
1111 runs-on : ubuntu-latest
1212 steps :
13- - name : Build the Docker image
14- uses : actions/checkout@v3
15- - name : get git describe tag
16- # only avaible when pushing tags
17- uses :
little-core-labs/[email protected] 18- id : tagName
19- - name : Docker meta
20- uses : docker/metadata-action@v4
21- id : meta
22- with :
23- images : theeye/theeye-supervisor
24- tags : |
25- type=schedule
26- type=ref,event=branch
27- type=ref,event=tag
28- type=ref,event=pr
29- type=raw,value=latest,enable={{is_default_branch}}
30- - name : Login to DockerHub
31- uses : docker/login-action@v2
32- with :
33- username : ${{ secrets.DOCKERHUB_USERNAME }}
34- password : ${{ secrets.DOCKERHUB_TOKEN }}
35- - name : Build image and push to Docker Hub
36- uses : docker/build-push-action@v3
37- with :
38- push : true
39- tags : ${{ steps.meta.outputs.tags }}
40- labels : ${{ steps.meta.outputs.labels }}
41- build-args : |
42- NODE_ENV=production
43- APP_VERSION=${{ steps.tagName.outputs.tag }}
13+ - name : Build the Docker image
14+ uses : actions/checkout@v3
15+ - name : get git describe tag
16+ uses :
little-core-labs/[email protected] 17+ id : tagName
18+ - name : Docker meta
19+ uses : docker/metadata-action@v4
20+ id : meta
21+ with :
22+ images : theeye/theeye-supervisor
23+ tags : |
24+ type=schedule
25+ type=ref,event=branch
26+ type=ref,event=tag
27+ type=ref,event=pr
28+ type=raw,value=latest,enable={{is_default_branch}}
29+ - name : Login to DockerHub
30+ uses : docker/login-action@v2
31+ with :
32+ username : ${{ secrets.DOCKERHUB_USERNAME }}
33+ password : ${{ secrets.DOCKERHUB_TOKEN }}
34+ - name : Build image and push to Docker Hub
35+ uses : docker/build-push-action@v3
36+ with :
37+ push : true
38+ tags : ${{ steps.meta.outputs.tags }}
39+ labels : ${{ steps.meta.outputs.labels }}
40+ build-args : |
41+ NODE_ENV=production
42+ APP_VERSION=${{ steps.tagName.outputs.tag }}
0 commit comments