From 184522b8317882789f8e2a83b37a41e8f02132de Mon Sep 17 00:00:00 2001 From: Ruairidh MacLeod Date: Tue, 26 Mar 2024 13:04:29 +0000 Subject: [PATCH] update docker builds --- .github/workflows/main.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index b683a54..bac90cc 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -35,8 +35,10 @@ jobs: - name: build image run: | set -euxo pipefail - cd "software/${{ matrix.package }}" - # img="ghcr.io/smi/fsl:$(grep FSL_VERSION= Dockerfile | cut -d'"' -f2)" - # docker build . --tag "$img" + package="${{ matrix.package }}" + cd "software/$package" + img="ghcr.io/smi/${package,,}:$(grep _VERSION= Dockerfile | cut -d'"' -f2)" + echo "$img" + docker build . --tag "$img" # echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin # docker push "$img"