Set up CI
All checks were successful
Build / build (push) Successful in 2m31s

This commit is contained in:
Frederik Ring 2023-09-02 20:22:18 +02:00
parent b88bb19f5a
commit e9d30f58ff
2 changed files with 20 additions and 2 deletions

View 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

View File

@ -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