File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI
2+ on :
3+ push :
4+ branches : ['main']
5+
6+ jobs :
7+ build :
8+ name : Build
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : docker/setup-qemu-action@v3
13+ - uses : docker/setup-buildx-action@v3
14+
15+ - uses : docker/login-action@v2
16+ with :
17+ registry : ghcr.io
18+ username : ${{ github.actor }}
19+ password : ${{ secrets.GITHUB_TOKEN }}
20+
21+ - name : Build the Docker image
22+ uses : docker/build-push-action@v5
23+ with :
24+ context : .
25+ platforms : linux/amd64,linux/arm64
26+ push : true
27+ tags : ghcr.io/polinetworkorg/materials-sync:latest
Original file line number Diff line number Diff line change 1+ FROM node:22-alpine
2+ WORKDIR /
3+ VOLUME [ "/repos" ]
4+ COPY package.json .
5+ COPY pnpm-lock.yaml .
6+ RUN pnpm install
7+ COPY . .
8+ RUN pnpm build
9+ CMD ["pnpm" , "start" ]
You can’t perform that action at this time.
0 commit comments