Skip to content

Commit 3c5b787

Browse files
committed
migrate deployment files; add printer controller docker publishing stuff
1 parent 015ff90 commit 3c5b787

4 files changed

Lines changed: 30 additions & 143 deletions

File tree

.github/workflows/printer_controller.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,33 @@ on:
55
branches:
66
- master
77
paths:
8-
- 'printer_controller/**'
9-
- '.github/workflows/printer_controller.yml'
8+
- 'printer_controller/pyproject.toml'
109

1110
jobs:
11+
version:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
VERSION: ${{ steps.get_version.outputs.VERSION }}
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install toml
22+
- name: Get version from pyproject.toml file
23+
id: get_version
24+
working-directory: ./printer_controller
25+
run: |
26+
version=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])")
27+
echo "VERSION=${version}" >> $GITHUB_OUTPUT
28+
- name: Set VERSION for next jobs
29+
id: set_version
30+
run: echo "VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV
31+
1232
docker:
33+
needs:
34+
- version
1335
runs-on: ubuntu-latest
1436
steps:
1537
- name: Checkout
@@ -22,6 +44,7 @@ jobs:
2244
images: |
2345
icroboticssociety/discord-printer-controller
2446
tags: |
47+
type=raw,value=${{ needs.version.outputs.VERSION }}
2548
type=raw,value=latest
2649
type=sha
2750
-

file_handler/deployment.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

printer_controller/pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[project]
2+
name = "ICRS 3D Printer Discord Control Interface"
3+
version = "1.0.0"
4+
description = "Discord Interface for controlling 3D printers. Provides basic functionality for starting/resuming prints and viewing live feed."
5+
requires-python = ">=3.8"

registration/deployment.yaml

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)