fix(containers): Don't deploy apptainers to manifests

This commit is contained in:
2026-02-12 17:27:16 +01:00
parent 8b6defe973
commit 45f0d6bcda
+8 -4
View File
@@ -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