File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ name: Publish Docker image
22
33on :
44 push :
5- branches : [ "main", "build" ]
5+ branches : ["main", "build"]
66 pull_request :
7- branches : [ "main" ]
7+ branches : ["main"]
88 release :
99 types : [published]
10+ workflow_dispatch :
1011
1112jobs :
1213 push_to_registry :
@@ -15,23 +16,22 @@ jobs:
1516 steps :
1617 - name : Check out the repo
1718 uses : actions/checkout@v3
18-
19+
1920 - name : Log in to Docker Hub
2021 uses : docker/login-action@v2.1.0
2122 with :
2223 username : ${{ secrets.DOCKER_USERNAME }}
23- password : ${{ secrets.DOCKER_PASSWORD }}
24+ password : ${{ secrets.DOCKER_PASSWORD }}
2425 - name : Extract metadata (tags, labels) for Docker
2526 id : meta
2627 uses : docker/metadata-action@v4.3.0
2728 with :
28- images : trfc/github-teams-user-sync
29+ images : trfc/github-teams-user-sync
2930 - name : Build and push Docker image
3031 uses : docker/build-push-action@v3.3.0
3132 with :
3233 context : .
3334 push : true
3435 tags : ${{ steps.meta.outputs.tags }}
3536 labels : ${{ steps.meta.outputs.labels }}
36- file : Dockerfile
37-
37+ file : Dockerfile
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ FROM node:18-alpine
1111
1212COPY --chown=node --from=Build /usr/src/app/package.json /usr/src/app/package.json
1313COPY --chown=node --from=Build /usr/src/app/node_modules /usr/src/app/node_modules
14- COPY --chown=node --from=Build /usr/src/app/out/src/ /usr/src/app/out/src /
14+ COPY --chown=node --from=Build /usr/src/app/out/ /usr/src/app/out/
1515
1616USER node
1717
Original file line number Diff line number Diff line change 77 "scripts" : {
88 "test" : " echo \" Error: no test specified\" && exit 1" ,
99 "dev" : " nodemon" ,
10- "start" : " node ./out/src/ app.js" ,
11- "build" : " tsc && shx cp ./src/openapi.yaml ./out/src/ openapi.yaml" ,
10+ "start" : " node ./out/app.js" ,
11+ "build" : " tsc && shx cp ./src/openapi.yaml ./out/openapi.yaml" ,
1212 "openapi" : " npx -y openapi-to-ts -i ./src/openapi.yaml -o ./src/types/sync-models.d.ts" ,
1313 "play" : " ts-node playground.ts"
1414 },
You can’t perform that action at this time.
0 commit comments