Skip to content

Commit 479c313

Browse files
Fix build, allow manual run
1 parent c39805a commit 479c313

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ name: Publish Docker image
22

33
on:
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

1112
jobs:
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

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ FROM node:18-alpine
1111

1212
COPY --chown=node --from=Build /usr/src/app/package.json /usr/src/app/package.json
1313
COPY --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

1616
USER node
1717

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
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
},

0 commit comments

Comments
 (0)