Skip to content

Commit f3d202b

Browse files
committed
ci: what if it works first time
1 parent 276779f commit f3d202b

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/docker.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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"]

0 commit comments

Comments
 (0)