diff --git a/.github/workflows/gn4-build.yml b/.github/workflows/gn4-build.yml new file mode 100644 index 000000000..8a4252fd5 --- /dev/null +++ b/.github/workflows/gn4-build.yml @@ -0,0 +1,26 @@ +name: Artifacts +run-name: 📦 Generate GN4 + DCAT-AP docker image + +on: push + +concurrency: + group: gn4-build-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-gn4-docker: + name: Build custom docker image for GeoNetwork 4 + runs-on: ubuntu-latest + steps: + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + + - name: Build GN4 docker image + working-directory: support-services + run: docker build . -t geonetwork/geonetwork-dcat-ap:latest + + - name: Push GN4 docker image + run: docker push geonetwork/geonetwork-dcat-ap:latest