Skip to content

Commit 736f8f8

Browse files
authored
Merge pull request #138 from wurstbrot/feat/angular-docker
Feat/angular docker
2 parents 69b4924 + daa87de commit 736f8f8

7 files changed

Lines changed: 18 additions & 20 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
password: ${{ secrets.HUB_TOKEN }}
2323
- name: create and push an image
2424
run: |
25-
chmod +x ./build.sh
2625
if [ "${GITHUB_REF##*/}" == "master" ]; then
27-
VERSION="2.5.${GITHUB_RUN_NUMBER}"
26+
VERSION="3.0.${GITHUB_RUN_NUMBER}"
2827
else
2928
BRANCH_TO_DOCKER=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9._-]//g')
3029
VERSION="${BRANCH_TO_DOCKER}-${GITHUB_RUN_NUMBER}"
3130
fi
32-
sudo ./build.sh "registry.hub.docker.com" "wurstbrot" "dsomm" "${VERSION}" "${{ secrets.HUB_USERNAME }}" "${{ secrets.HUB_TOKEN }}"
31+
sudo docker build -t wurstbrot/dsomm:latest .
32+
sudo docker push wurstbrot/dsomm:latest
33+
sudo docker tag wurstbrot/dsomm:${VERSION}
34+
sudo docker push wurstbrot/dsomm:${VERSION}

.github/workflows/test.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node:18.7-alpine AS build
2+
WORKDIR /usr/src/app
3+
COPY package.json package-lock.json ./
4+
RUN npm install
5+
COPY . .
6+
RUN npm run build
7+
8+
FROM bitnami/nginx:latest
9+
#COPY nginx.conf /etc/nginx/nginx.conf
10+
COPY --from=build /usr/src/app/dist/dsomm/ /app

angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{
3939
"type": "initial",
4040
"maximumWarning": "500kb",
41-
"maximumError": "1mb"
41+
"maximumError": "2mb"
4242
},
4343
{
4444
"type": "anyComponentStyle",

src/app/component/matrix/matrix.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class MatrixComponent implements OnInit {
4747

4848
// function to initialize if level columns exists
4949
ngOnInit(): void {
50-
this.yaml.setURI('./assets/YAML/sample.yaml');
50+
this.yaml.setURI('./assets/YAML/meta.yaml');
5151
// Function sets column header
5252
this.yaml.getJson().subscribe((data) => {
5353
this.YamlObject = data;
@@ -64,7 +64,7 @@ export class MatrixComponent implements OnInit {
6464
});
6565

6666
//gets value from generated folder
67-
this.yaml.setURI('./assets/YAML/generated/sample.yaml');
67+
this.yaml.setURI('./assets/YAML/generated/generated.yaml');
6868
// Function sets data
6969
this.yaml.getJson().subscribe((data) => {
7070
this.YamlObject = data;

0 commit comments

Comments
 (0)