-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.01 KB
/
docker-build.yaml
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
35
36
37
38
39
############################
# @author EliasDH Team #
# @see https://eliasdh.com #
# @since 01/01/2025 #
############################
name: Build and Push Docker Image to GHCR
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-push-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js (voor Angular)
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: |
cd ./App/Frontend
npm install
- name: Build Angular Application
run: |
cd ./App/Frontend
npm run build
- name: Login to GHCR
run: |
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u eliasdehondt --password-stdin
- name: Build/Push Frontend Docker Image
run: |
docker build --push -t ghcr.io/eliasdh-com/eliasdhcom-frontend:latest ./App/Frontend