feat: refactor podman build

This commit is contained in:
Settel 2022-11-06 09:50:13 +01:00
parent eeb48281e4
commit dab94048f8
2 changed files with 8 additions and 9 deletions

View File

@ -2,11 +2,9 @@ pipeline:
frontend: frontend:
image: node:16-alpine image: node:16-alpine
commands: commands:
# - ( cd client && yarn install ) - ( cd client && yarn install )
# - ( cd client/ && yarn generate ) - ( cd client/ && yarn generate )
- mkdir -p client/.output/public/ - mkdir -p client/.output/public/
when:
branch: woodpecker
backend: backend:
image: golang:1.18-alpine image: golang:1.18-alpine
@ -15,8 +13,7 @@ pipeline:
- apk add make - apk add make
- make -C server setup - make -C server setup
- make -C server build - make -C server build
when: - cp srver/knowyt build/files/
branch: woodpecker
build-publish: build-publish:
image: mtvb/drone-kaniko image: mtvb/drone-kaniko
@ -29,8 +26,6 @@ pipeline:
repo: knowyt repo: knowyt
registry: docker.private.gnuher.de registry: docker.private.gnuher.de
tags: latest tags: latest
when:
branch: woodpecker
notify: notify:
image: plugins/matrix image: plugins/matrix
@ -41,3 +36,7 @@ pipeline:
from_secret: matrix.bw-messenger.de.username from_secret: matrix.bw-messenger.de.username
password: password:
from_secret: matrix.bw-messenger.de.password from_secret: matrix.bw-messenger.de.password
branches:
- woodpecker
- prod

View File

@ -52,7 +52,7 @@ build:
$(MAKE) podman-save $(MAKE) podman-save
podman-build: podman-build:
cp server/knowyt build/files/ cp ./knowyt ../build/files/
podman build --tag knowyt:$(VERSION) . podman build --tag knowyt:$(VERSION) .
podman-save: podman-save: