From f3263a73e84f7fd5f2dae97af66705302bac1084 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 19 Aug 2024 20:21:31 -0400 Subject: [PATCH] Add quick build/upload of docker images based on what we have in heudiconv --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 974c9154..97981e96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,3 +42,21 @@ jobs: ~/auto shipit -vv env: GH_TOKEN: ${{ secrets.AUTO_USER_TOKEN }} + + - name: Build Docker images + if: steps.auto-version.outputs.version != '' + run: | + docker build \ + -t repronim/neurodocker:master \ + -t repronim/neurodocker:latest \ + -t repronim/neurodocker:"$(git describe | sed -e 's,^v,,g')" \ + . + + - name: Push Docker images + if: steps.auto-version.outputs.version != '' + run: | + docker login -u "$DOCKER_LOGIN" --password-stdin <<<"$DOCKER_TOKEN" + docker push --all-tags repronim/neurodocker + env: + DOCKER_LOGIN: ${{ secrets.DOCKER_LOGIN }} + DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}