From 75aa9916b3c4180e75155bfe1be2b5d422218017 Mon Sep 17 00:00:00 2001 From: Aidan Hilt <11202897+AidanHilt@users.noreply.github.com> Date: Sun, 10 Mar 2024 22:35:38 -0400 Subject: [PATCH] Feat/build tooling (#56) * Blah blah * Made atils not fail if there is no kubernetes configuration available * Did a bunch * Added the dockerfile at its new, lower user * Some stuff * This should be fine * Adding our first CI workflow * You'll see * Didn't get it all * Got the delete * Adding docker login to actions * Let's see this build * Getting our CI right * Fixing our workflow * Bumping version to test our CI * Think this is right? * Grabbed the wrong thing * Buncha stuff * Alright, think this will run * That was silly * Here we go * We're almost there --- atils/.atils_buildconfig.json | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/atils/.atils_buildconfig.json b/atils/.atils_buildconfig.json index de297119..ac085bc5 100644 --- a/atils/.atils_buildconfig.json +++ b/atils/.atils_buildconfig.json @@ -15,25 +15,30 @@ "command": "poetry run pytest", "order": 2 }, + { + "name": "install-dependencies", + "command": "poetry install", + "order": 10 + }, { "name": "build", "command": "poetry build", - "order": 10 + "order": 11 }, { - "name": "install", + "name": "local-install", "command": "VERSION=$(grep -E '^version = \"' pyproject.toml | cut -d'\"' -f2); pipx install dist/atils-$VERSION.tar.gz --force", - "order": 11 + "order": 12 }, { "name": "docker-build-and-push", - "order": 12, + "order": 13, "command": "VERSION=$(grep -E '^version = \"' pyproject.toml | cut -d'\"' -f2); docker build --platform linux/arm64,linux/amd64 -t \"aidanhilt/atils:$VERSION\" -t \"aidanhilt/atils:latest\" --push .", "ci_only": true }, { "name": "publish", - "order": 13, + "order": 14, "command": "poetry publish -u __token__ -p \"$PYPI_AUTH_TOKEN\"", "ci_only": true } @@ -53,7 +58,7 @@ "name": "local-install", "actions": [ "build", - "install" + "local-install" ], "description": "Builds and installs atils locally, for testing purposes" },