We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d69a3af commit fc25fe4Copy full SHA for fc25fe4
.github/workflows/automation.yml
@@ -1,6 +1,19 @@
1
name: Build Next.js web application
2
on: push
3
jobs:
4
+ build-container:
5
+ name: Build container
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - name: Checkout code
9
+ uses: actions/checkout@v2
10
+ - name: Push to Docker Hub
11
+ uses: docker/build-push-action@v1
12
+ with:
13
+ username: ${{ secrets.DOCKER_USERNAME }}
14
+ password: ${{ secrets.DOCKER_PASSWORD }}
15
+ repository: msusdev/webnext
16
+ tags: ${{ github.run_number }}, latest
17
build-project:
18
name: Build Next.js project
19
runs-on: ubuntu-latest
Dockerfile
@@ -0,0 +1,12 @@
+FROM node:alpine
+
+WORKDIR /app
+COPY . /app
+RUN npm install
+RUN npm run build
+EXPOSE 3000
+CMD npm run start
0 commit comments