Some checks failed
Build Docker Image / Build Docker Image (push) Failing after 6m46s
angular issue is about the version itself, but verification is needed by front-end dev too. cannot figure it out yet why isn't installing on ubuntu noble container. ubuntu noble is using /etc/apt/source.list.d, unlike debian. Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
30 lines
858 B
YAML
30 lines
858 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
|
|
sudo sed -i 's@http://archive.ubuntu.com@http://mirror.kku.ac.th@g' /etc/apt/sources.list.d/ubuntu.sources
|
|
sudo apt update && sudo apt install nodejs npm -y
|
|
- name: Install project dependencies
|
|
run: |
|
|
cd accounting-ng-nuttakit
|
|
npm install --force
|
|
- name: Build webapp
|
|
run: |
|
|
cd accounting-ng-nuttakit
|
|
ls node_modules
|
|
ng build
|
|
ls dists
|
|
- name: Build docker image
|
|
run: |
|
|
ls
|
|
docker -v
|