Some checks failed
Build Docker Image / Build Docker Image (push) Failing after 24s
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
30 lines
888 B
YAML
30 lines
888 B
YAML
name: Build Docker Image
|
|
run-name: Build Docker Image
|
|
on: [push]
|
|
|
|
jobs:
|
|
Build Docker Image:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Install system dependencies
|
|
run: |
|
|
// change mirror to kku.ac.th for faster package downloading
|
|
sed -i 's@http://archive.ubuntu.com@https://mirror.kku.ac.th@g' /etc/apt/sources.list
|
|
sudo apt update && sudo apt install nodejs npm curl -y
|
|
// Install docker
|
|
curl -fSsl https://get.docker.com | bash
|
|
- name: Install project dependencies
|
|
run: |
|
|
cd accounting-ng-nuttakit
|
|
npm install --force
|
|
- name: Build webapp
|
|
run: |
|
|
cd accounting-ng-nuttakit
|
|
npm install --force
|
|
- name: Build Docker Image
|
|
run: |
|
|
ls
|
|
docker -v
|