Skip to content

Commit 4c6fcfe

Browse files
authored
latest build image
Production
2 parents c3b8e15 + c1163b9 commit 4c6fcfe

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
- name: Login to Docker Hub
13+
uses: docker/login-action@v3
14+
with:
15+
username: loshido
16+
password: ${{ secrets.HUB_TOKEN }}
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v3
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
1221
- name: Build
1322
uses: docker/build-push-action@v6
1423
with:
15-
tags: loshido/tidee:production
16-
secrets: |
17-
"github_token=${{ secrets.HUB_TOKEN }}"
24+
push: true
25+
tags: loshido/tidee:latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /app
33

44
COPY . .
55

6-
RUN echo "{}" >> ./data/config.json
6+
RUN mkdir data && echo "{}" >> ./data/config.json
77
RUN --mount=type=cache,target=./cache \
88
npm install
99
RUN npm run build

0 commit comments

Comments
 (0)