summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-07-10 23:53:46 +0200
committerivarlovlie <git@ivarlovlie.no>2022-07-10 23:53:46 +0200
commitcc89c1b2691a9b163b15e83b9f14c91c444f3b45 (patch)
treeb9f5b02887c48c2bee36309ea0e1d71a0afb5e4d
parent986bb4c98428758dfca4908752ff6b7acc2f2837 (diff)
downloadgreatoffice-cc89c1b2691a9b163b15e83b9f14c91c444f3b45.tar.xz
greatoffice-cc89c1b2691a9b163b15e83b9f14c91c444f3b45.zip
feat: Add initial sourcehut build manifest
-rw-r--r--server/.build.yaml28
-rw-r--r--server/src/IOL.GreatOffice.Api.csproj9
2 files changed, 31 insertions, 6 deletions
diff --git a/server/.build.yaml b/server/.build.yaml
new file mode 100644
index 0000000..e3a8e1a
--- /dev/null
+++ b/server/.build.yaml
@@ -0,0 +1,28 @@
+arch: null
+artifacts: [ ]
+environment: { }
+image: alpine/edge
+packages:
+ - docker
+repositories: { }
+secrets:
+ - 866a99d5-ea52-4aa1-acda-c39949460867
+shell: true
+sources:
+ - https://git.ivar.systems/greatoffice#master
+tasks:
+ - build: |
+ sudo service docker start
+ CURRENT_DEV_VERSION=$(cat ~/greatoffice/server/.version-dev)
+ CURRENT_DEV_VERSION_INT=${CURRENT_DEV_VERSION//[!0-9]/}
+ docker build -t greatoffice/server:$CURRENT_DEV_VERSION_INT ~/greatoffice/server
+ - publish: |
+ sudo service docker start
+ DOCKER_PASS=$(cat ~/.dockerpassword)
+ CURRENT_DEV_VERSION=$(cat ~/greatoffice/server/.version-dev)
+ CURRENT_DEV_VERSION_INT=${CURRENT_DEV_VERSION//[!0-9]/}
+ docker login dr.ivar.systems -u builder -p $DOCKER_PASS
+ docker push dr.ivar.systems/greatoffice/server:$CURRENT_DEV_VERSION_INT
+ docker push dr.ivar.systems/greatoffice/server:latest
+ complete-build()
+triggers: [ ]
diff --git a/server/src/IOL.GreatOffice.Api.csproj b/server/src/IOL.GreatOffice.Api.csproj
index 3264d70..31e2bf1 100644
--- a/server/src/IOL.GreatOffice.Api.csproj
+++ b/server/src/IOL.GreatOffice.Api.csproj
@@ -37,6 +37,9 @@
</ItemGroup>
<ItemGroup>
+ <Content Include="../.build.yaml">
+ <Link>.build.yaml</Link>
+ </Content>
<Content Include="..\..\README.md">
<Link>README.md</Link>
</Content>
@@ -60,12 +63,6 @@
<ItemGroup>
<None Remove="2022.crt" />
- <Resource Include="2022.crt">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Resource>
<None Remove="2022.pfx" />
- <Resource Include="2022.pfx">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </Resource>
</ItemGroup>
</Project>