Skip to content

Commit 9b86f07

Browse files
committed
Merge branch 'docker'
2 parents 063b09b + 183cd85 commit 9b86f07

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/dockerimage.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docker Build/Publish Image
2+
on:
3+
workflow_dispatch:
4+
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Set up QEMU
14+
uses: docker/setup-qemu-action@v2
15+
-
16+
name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v2
18+
with:
19+
version: v0.7.0
20+
-
21+
name: Login to DockerHub
22+
uses: docker/login-action@v2
23+
with:
24+
username: ${{ secrets.DOCKER_USERNAME }}
25+
password: ${{ secrets.DOCKER_PASSWORD }}
26+
-
27+
name: Build and push
28+
uses: docker/build-push-action@v3
29+
with:
30+
platforms: linux/arm/v7
31+
push: true
32+
tags: pathonscript/bot:latest

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ RUN npm install --only=production
3333
COPY --from=build-runner /tmp/app/build /app/build
3434

3535
# Start bot
36-
CMD [ "npm", "run", "start" ]
36+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)