Skip to content

Commit

Permalink
condense workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Mar 26, 2024
1 parent d8a1313 commit 56e3173
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: main

on:
Expand All @@ -14,43 +13,30 @@ defaults:
shell: bash

jobs:
freesurfer:
containers:
runs-on: ubuntu-22.04
if: false # temp
strategy:
matrix:
package: ["FSL", "Freesurfer"]
steps:
- name: checkout
uses: actions/checkout@v4
- name: build image
- name: free disk space
run: |
set -euxo pipefail
# Debug
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/share/boost
sudo rm -rf /opt/ghc
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo docker image prune --all --force
df -h
cd software/Freesurfer
docker build .
fsl:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: build image
run: |
set -euxo pipefail
# Debug
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/share/boost
sudo rm -rf /opt/ghc
sudo docker image prune --all --force
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
cd software/FSL
img="ghcr.io/smi/fsl:$(grep FSL_VERSION= Dockerfile | cut -d'"' -f2)"
docker build . --tag "$img"
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker push "$img"
cd software/$package
# img="ghcr.io/smi/fsl:$(grep FSL_VERSION= Dockerfile | cut -d'"' -f2)"
# docker build . --tag "$img"
# echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
# docker push "$img"

0 comments on commit 56e3173

Please sign in to comment.