-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 787 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (26 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: React next.js CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 22
- name: Build Docker image
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/sample-app:gha .
- name: Run tests
run: echo "Put your testing command here if you have"
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image
run: docker image push ${{ secrets.DOCKER_USERNAME }}/sample-app:gha