]> xn--ix-yja.es Git - alex.git/commitdiff
Draft workstation build
authoralex <alex@pdp7.net>
Sat, 6 May 2023 19:24:18 +0000 (21:24 +0200)
committerAlex Corcoles <alex@corcoles.net>
Sat, 6 May 2023 19:36:36 +0000 (19:36 +0000)
.github/workflows/build-workstation.yml [new file with mode: 0644]
.gitmodules
workstation/arch-container-builder [new submodule]
workstation/build_workstation [new file with mode: 0755]

diff --git a/.github/workflows/build-workstation.yml b/.github/workflows/build-workstation.yml
new file mode 100644 (file)
index 0000000..678c5d5
--- /dev/null
@@ -0,0 +1,17 @@
+on:
+  - push
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          submodules: true
+      - run: |
+          cd workstation
+          ./build_workstation
+          podman login -u="alexpdp7+github_workstation_builder" -p="$ROBOT_TOKEN" quay.io
+          podman push localhost/workstation:latest quay.io/alexpdp7/workstation:latest
+        env:
+          ROBOT_TOKEN: ${{ secrets.ROBOT_TOKEN }}
index 25a4690d7d9038ef1c3c2363061be2606a9264f3..1ec5fe3b35fb8f276126f8645f428a53e6e011af 100644 (file)
@@ -4,3 +4,6 @@
 [submodule "personal_infra/puppet/modules/nagios_core"]
        path = personal_infra/puppet/modules/nagios_core
        url = https://github.com/puppetlabs/puppetlabs-nagios_core.git
+[submodule "workstation/arch-container-builder"]
+       path = workstation/arch-container-builder
+       url = https://github.com/alexpdp7/arch-container-builder.git
diff --git a/workstation/arch-container-builder b/workstation/arch-container-builder
new file mode 160000 (submodule)
index 0000000..5c6826e
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 5c6826ea04dc282bf7a820da55238c6c3cb30385
diff --git a/workstation/build_workstation b/workstation/build_workstation
new file mode 100755 (executable)
index 0000000..101401a
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -ue
+
+(
+       cd arch-container-builder/
+       ./builder.py \
+                    --package ansible \
+                    --package kubectl \
+                    --package emacs-nox \
+                    --package tanka \
+                    --package puppet \
+                    --package sshpass \
+                    --package git \
+                    --aur-package jsonnet-bundler-bin \
+                    workstation
+)