From 45f0d6bcdab3c07026103782bee28b7d34604dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20J=C3=B6rg?= Date: Thu, 12 Feb 2026 17:27:16 +0100 Subject: [PATCH] fix(containers): Don't deploy apptainers to manifests --- publish-container/action.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/publish-container/action.yaml b/publish-container/action.yaml index fc601d2..daad5b6 100644 --- a/publish-container/action.yaml +++ b/publish-container/action.yaml @@ -27,6 +27,10 @@ inputs: push-token: description: "Token for pushing to manifests repository" required: false + apptainer: + description: "Whether to build for apptainer format. When present, skips manifests deployment." + required: false + default: "false" runs: using: "composite" steps: @@ -98,7 +102,7 @@ runs: docker://${{ steps.envvars.outputs.IMAGE_NAME }} - name: Checkout manifests repository - if: inputs.deploy == 'true' + if: inputs.deploy == 'true' && inputs.apptainer != 'true' uses: actions/checkout@v6 with: repository: ${{ inputs.manifests-repo }} @@ -106,7 +110,7 @@ runs: token: ${{ inputs.push-token }} - name: Configure git credentials - if: inputs.deploy == 'true' + if: inputs.deploy == 'true' && inputs.apptainer != 'true' shell: bash run: | cd manifests @@ -115,7 +119,7 @@ runs: git remote set-url origin https://x-access-token:${{ inputs.push-token }}@git.oceanbox.io/${{ inputs.manifests-repo }} - name: Deploy to production - if: inputs.deploy == 'true' && github.ref_type == 'tag' + if: inputs.deploy == 'true' && github.ref_type == 'tag' && inputs.apptainer != 'true' shell: bash run: | set -euo pipefail @@ -149,7 +153,7 @@ runs: git push origin main - name: Deploy to staging - if: inputs.deploy == 'true' && github.ref_type == 'branch' && github.ref_name == 'main' + if: inputs.deploy == 'true' && github.ref_type == 'branch' && github.ref_name == 'main' && inputs.apptainer != 'true' shell: bash run: | set -euo pipefail