This commit is contained in:
parent
b88bb19f5a
commit
e9d30f58ff
17
.gitea/workflows/build.yml
Normal file
17
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,17 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Docker
|
||||
run: curl -fsSL https://get.docker.com | sh
|
||||
- name: Build
|
||||
run: |
|
||||
make build
|
5
Makefile
5
Makefile
@ -27,8 +27,9 @@ SITEURL ?= http://localhost:6000
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
@docker build --build-arg siteurl=${SITEURL} -t offen-software-builder/website -f build/Dockerfile .
|
||||
@docker build --build-arg siteurl=${SITEURL} -t offen/software-builder-website -f build/Dockerfile .
|
||||
@rm -rf output && mkdir output
|
||||
@docker create --entrypoint=bash --name assets offen-software-builder/website
|
||||
@docker create --entrypoint=bash --name assets offen/software-builder-website
|
||||
@docker cp assets:/code/website/output/. ./output/
|
||||
@docker rm assets
|
||||
@docker rmi offen/software-builder-website
|
||||
|
Loading…
Reference in New Issue
Block a user