Merge pull request #7 from fLotte-meets-HWR-DB/actions

Add master branch to push hooks
pull/8/head
Trivernis 4 years ago committed by GitHub
commit e840d8d507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@ name: Build Docker Image
on: on:
push: push:
branches: [ main ] branches: [ main, master ]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -31,7 +31,7 @@ jobs:
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64 platforms: linux/amd64
push: true push: true
tags: | tags: |
flotte-docker-registry.spdns.org/frontend-server:latest flotte-docker-registry.spdns.org/frontend-server:latest

@ -1,7 +1,7 @@
FROM node:14.14.0-alpine3.10 AS builder FROM node:14.14.0-alpine3.10 AS builder
WORKDIR / WORKDIR /
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
RUN apk add --no-cache python3 RUN apk add --no-cache python3 build-base
RUN npm install && npm install -g @angular/cli && mkdir frontend RUN npm install && npm install -g @angular/cli && mkdir frontend
RUN mv node_modules ./frontend RUN mv node_modules ./frontend
WORKDIR /frontend WORKDIR /frontend

Loading…
Cancel
Save