chore: setup build process (#30)

* chore: build

* chore: on push

* chore: runs on

* chore: docker

* chore: need

* test

* test

* test

* test

* chore: missing steps

* test

* test

* test

* repo url

* test with registry

* path

* yeah path

* print path

* path inside docker build

* path

* test

* var

* var

* docker login vars

* GH_Token

* short sha

* checkout git

* typo

* yaml fun

* short sha

* upload scan result

* use sh

* WIP GN8 Commit

* Update .github/workflows/release.yml

Co-Authored-By: livio-a <livio.a@gmail.com>

* Update .github/workflows/release.yml

Co-Authored-By: livio-a <livio.a@gmail.com>

* Update .github/workflows/release.yml

Co-Authored-By: livio-a <livio.a@gmail.com>

* delete main.go in root

* add coveralls

* coveralls badge

* docker ignore

* move dockerfile

* fix needs

* try codecov

* set user

* try without default shell

* try to  add group and user

* typo

* add release step

* update semrel

* test

* try

* try it

* typo

* should work

Co-authored-by: livio-a <livio.a@gmail.com>
This commit is contained in:
Florian Forster
2020-04-06 06:44:28 +02:00
committed by GitHub
parent fbeab4c582
commit b63c8b811b
6 changed files with 161 additions and 0 deletions

5
build/.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
# Exclude system dirs
.dependabot
.github
.git

4
build/dockerfile-debug Normal file
View File

@@ -0,0 +1,4 @@
FROM alpine:latest
COPY .build/angular /app/console
COPY .build/go /app

10
build/dockerfile-prod Normal file
View File

@@ -0,0 +1,10 @@
# FROM sratch
FROM alpine:latest
RUN addgroup -S zitadel && adduser -S zitadel -G zitadel
USER zitadel
COPY .build/angular /app/console
COPY .build/go /app