Skip to content

Commit

Permalink
Merge pull request #744 from geonetwork/build-pipelines-docker-image
Browse files Browse the repository at this point in the history
feat(ci): push geonetwork-ui-tools-pipelines docker image to docker hub
  • Loading branch information
jahow authored Dec 30, 2023
2 parents 9ce2ff9 + a087eb5 commit ebadd92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down

0 comments on commit ebadd92

Please sign in to comment.