File tree Expand file tree Collapse file tree 8 files changed +2959
-0
lines changed Expand file tree Collapse file tree 8 files changed +2959
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ tags : [ '*.*.*' ]
7+ pull_request :
8+ branches : [ "main" ]
9+
10+ env :
11+ REGISTRY : ghcr.io
12+ IMAGE_NAME : ${{ github.repository }}
13+
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ permissions :
19+ contents : read
20+ packages : write
21+
22+ steps :
23+ - name : Checkout repository
24+ uses : actions/checkout@v4
25+
26+ - name : Log into registry ${{ env.REGISTRY }}
27+ if : github.event_name != 'pull_request'
28+ uses : docker/login-action@v3
29+ with :
30+ registry : ${{ env.REGISTRY }}
31+ username : ${{ github.actor }}
32+ password : ${{ secrets.GITHUB_TOKEN }}
33+
34+ - name : Extract Docker metadata
35+ id : meta
36+ uses : docker/metadata-action@v5
37+ with :
38+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
39+
40+ - name : Build and push Docker image
41+ id : build-and-push
42+ uses : docker/build-push-action@v6
43+ with :
44+ context : .
45+ push : ${{ github.event_name != 'pull_request' }}
46+ tags : ${{ steps.meta.outputs.tags }}
47+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1+ node_modules /
2+ .frundenbot.env
Original file line number Diff line number Diff line change 1+ FROM node:current-alpine
2+
3+ WORKDIR /app
4+
5+ COPY package.json package-lock.json .
6+
7+ RUN npm ci
8+
9+ COPY src src
10+
11+ ENTRYPOINT ["node" , "/app/src/main.mjs" ]
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ services :
2+ frundenbot :
3+ build : .
4+ env_file : .frundenbot.env
5+
You can’t perform that action at this time.
0 commit comments