fix(containers): Don't deploy apptainers to manifests
This commit is contained in:
@@ -27,6 +27,10 @@ inputs:
|
|||||||
push-token:
|
push-token:
|
||||||
description: "Token for pushing to manifests repository"
|
description: "Token for pushing to manifests repository"
|
||||||
required: false
|
required: false
|
||||||
|
apptainer:
|
||||||
|
description: "Whether to build for apptainer format. When present, skips manifests deployment."
|
||||||
|
required: false
|
||||||
|
default: "false"
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@@ -98,7 +102,7 @@ runs:
|
|||||||
docker://${{ steps.envvars.outputs.IMAGE_NAME }}
|
docker://${{ steps.envvars.outputs.IMAGE_NAME }}
|
||||||
|
|
||||||
- name: Checkout manifests repository
|
- name: Checkout manifests repository
|
||||||
if: inputs.deploy == 'true'
|
if: inputs.deploy == 'true' && inputs.apptainer != 'true'
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: ${{ inputs.manifests-repo }}
|
repository: ${{ inputs.manifests-repo }}
|
||||||
@@ -106,7 +110,7 @@ runs:
|
|||||||
token: ${{ inputs.push-token }}
|
token: ${{ inputs.push-token }}
|
||||||
|
|
||||||
- name: Configure git credentials
|
- name: Configure git credentials
|
||||||
if: inputs.deploy == 'true'
|
if: inputs.deploy == 'true' && inputs.apptainer != 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd manifests
|
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 }}
|
git remote set-url origin https://x-access-token:${{ inputs.push-token }}@git.oceanbox.io/${{ inputs.manifests-repo }}
|
||||||
|
|
||||||
- name: Deploy to production
|
- 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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -149,7 +153,7 @@ runs:
|
|||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
- name: Deploy to staging
|
- 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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|||||||
Reference in New Issue
Block a user