Skip to content

Commit

Permalink
Split builder and runtime container jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
heerener committed Oct 8, 2024
1 parent 8c0f4b5 commit 0617ed2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/spacktainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Build Spacktainers
on: [push]
jobs:
base-container-job:
builder-container-job:
runs-on:
- codebuild-spacktainers-${{ github.run_id }}-${{ github.run_attempt }}
- image:ubuntu-7.0
Expand Down Expand Up @@ -30,6 +30,14 @@ jobs:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
SPACK_DEPLOYMENT_KEY_PUB: ${{ secrets.SPACK_DEPLOYMENT_KEY_PUB }}
SPACK_DEPLOYMENT_KEY_PRIVATE: ${{ secrets.SPACK_DEPLOYMENT_KEY_PRIVATE }}
runtime-container-job:
runs-on:
- codebuild-spacktainers-${{ github.run_id }}-${{ github.run_attempt }}
- image:ubuntu-7.0
- instance-size:small
steps:
- name: clone repo
uses: actions/checkout@v4
- name: create runtime
uses: ./.github/actions/build_container
with:
Expand All @@ -55,7 +63,7 @@ jobs:
- codebuild-spacktainers-${{ github.run_id }}-${{ github.run_attempt }}
- image:ubuntu-7.0
- instance-size:small
needs: [base-container-job]
needs: [builder-container-job, runtime-container-job]
steps:
- name: clone repo
uses: actions/checkout@v4
Expand Down

0 comments on commit 0617ed2

Please sign in to comment.