From a087eb5ba169d9c62ef20cce14a9e56a5af860e8 Mon Sep 17 00:00:00 2001 From: Olivia Guyot Date: Sat, 30 Dec 2023 22:16:11 +0100 Subject: [PATCH] feat(ci): push pipelines docker image to docker hub --- .github/workflows/artifacts.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index e3aea3a031..c757b9b54e 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -80,15 +80,19 @@ jobs: tag: ${{ github.ref }} overwrite: true - - name: Build all docker images + - name: Build docker images for all apps if: github.event_name == 'release' run: npx nx run-many --projects=${{ env.APP_NAMES }} --target=docker-build - - name: Build affected docker images + - name: Build docker images for affected apps if: github.event_name != 'release' # FIXME: excluding data-platform until it has a remote registry to be pushed run: npx nx affected --target=docker-build --exclude=data-platform + - name: Build docker images for tools + working-directory: tools + run: npm run pipelines:docker-build + - name: Tag all docker images on main also as latest if: github.event_name == 'push' # only happens when pushing on the main branch run: docker image ls --format 'docker tag {{.Repository}}:{{.Tag}} {{.Repository}}:latest' --filter=reference='geonetwork/*' | bash -