From a5b2cc49bc347881b2af938e8b8964d808597495 Mon Sep 17 00:00:00 2001 From: abaumann Date: Fri, 29 Mar 2024 09:21:58 -0400 Subject: [PATCH] Ab fix release process (#560) * removing full requirements from setup.py and only installing in github action tests and docker * fixing path to requirements file * added github action for pushing to pypi upon github release * removing releasing to testpypi * added gh action for pushing docker to gcr and ghcr * github actions cannot use both uses and run, removing the uses * fixing gh action to remove with and use env for a run * changed hardcoded username for docker login to gh secret * temporarily changing version to test out gh actions * Changing trigger to push: tags: to try to auto kick off on tagging a release * Changing trigger to be on push: tags: to try to get this auto deployed * removing the creation of a github release from the action - we are already making a release from the UI which triggers this, no need * adding gcloud auth for docker to support pushing to gcr * upping version to retest gh action * trying docker prune to avoid running out of disk issues --------- Co-authored-by: Alexander Baumann --- .github/workflows/publish-to-gcr-ghcr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-to-gcr-ghcr.yml b/.github/workflows/publish-to-gcr-ghcr.yml index 2af2c8548..ba34e59e9 100644 --- a/.github/workflows/publish-to-gcr-ghcr.yml +++ b/.github/workflows/publish-to-gcr-ghcr.yml @@ -20,7 +20,9 @@ jobs: run: | docker login ghcr.io -u ${github_username} -p ${github_token} yes | gcloud auth configure-docker gcr.io + docker system prune -a ./docker/vm_boot_images/build.sh -P + docker system prune -a ./docker/vm_boot_images/build.sh -c -P env: github_token: ${{ secrets.GHCR_TOKEN }}