diff --git a/.github/workflows/newcontents.yml b/.github/workflows/newcontents.yml new file mode 100644 index 000000000..ed1bb30c8 --- /dev/null +++ b/.github/workflows/newcontents.yml @@ -0,0 +1,48 @@ +name: Docker build for new folder contents test version +on: + push: + branches: ['new-folder-contents'] + +jobs: + build_develop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker images + uses: docker/build-push-action@v4 + with: + context: . + file: ./dockerfiles/Dockerfile + tags: redturtletech/io-comune-base:contents + pull: true + push: true + cache-from: type=registry,ref=redturtletech/io-comune-base:contents + cache-to: type=inline + build-args: | + ADDON_NAME=design-comuni-plone-theme + ADDON_PATH=design-comuni-plone-theme + VOLTO_VERSION=17.7.0 + + - name: Deploy to rancher + uses: redturtle/rancher-deploy-action@v0.2.0 + with: + host: ${{ secrets.RANCHER_HOST }} + api-username: ${{ secrets.RANCHER_API_USERNAME }} + api-password: ${{ secrets.RANCHER_API_PASSWORD }} + cluster-id: ${{ secrets.RANCHER_CLUSTER_ID }} + project-id: ${{ secrets.RANCHER_PROJECT_ID }} + namespace: ${{ secrets.RANCHER_NAMESPACE_DEVELOP }} + workload: ${{ secrets.RANCHER_WORKLOAD_PERF }} + image: redturtletech/io-comune-base:contents + slack-hook-url: ${{ secrets.RANCHER_SLACK_HOOK_URL }} + diff --git a/package.json b/package.json index b4055e030..14fe6de38 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@eeacms/volto-taxonomy", "volto-feedback", "volto-slimheader", - "volto-contents-next" + "@plone-collective/volto-contents-next" ], "scripts": { "prepare": "husky install", @@ -126,6 +126,7 @@ "@babel/plugin-proposal-throw-expressions": "7.18.6", "@eeacms/volto-taxonomy": "^1.0.0", "@loadable/babel-plugin": "5.13.2", + "@plone-collective/volto-contents-next": "0.4.0", "@plone-collective/volto-sentry": "0.3.0", "bootstrap-italia": "2.6.1", "classnames": "^2.3.2", diff --git a/yarn.lock b/yarn.lock index 454ebd65e..544c90455 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3952,6 +3952,20 @@ __metadata: languageName: node linkType: hard +"@plone-collective/volto-contents-next@npm:0.4.0": + version: 0.4.0 + resolution: "@plone-collective/volto-contents-next@npm:0.4.0" + dependencies: + "@plone/components": alpha + react-aria: 3.33.0 + react-aria-components: 1.2.0 + usehooks-ts: 3.1.0 + peerDependencies: + "@plone/volto": ">=17.0.0" + checksum: fb31c5def867595a647f7447942224fb990d565d3c62c33f53e7fa0419a0827e3d42187ab0a0f1b9819ff568069f938f1efd872533076cd124a7034936ef4df6 + languageName: node + linkType: hard + "@plone-collective/volto-sentry@npm:0.3.0": version: 0.3.0 resolution: "@plone-collective/volto-sentry@npm:0.3.0" @@ -3964,7 +3978,7 @@ __metadata: languageName: node linkType: hard -"@plone/components@npm:2.0.0-alpha.7": +"@plone/components@npm:2.0.0-alpha.7, @plone/components@npm:alpha": version: 2.0.0-alpha.7 resolution: "@plone/components@npm:2.0.0-alpha.7" dependencies: @@ -8169,6 +8183,7 @@ __metadata: "@commitlint/config-conventional": 17.6.6 "@eeacms/volto-taxonomy": ^1.0.0 "@loadable/babel-plugin": 5.13.2 + "@plone-collective/volto-contents-next": 0.4.0 "@plone-collective/volto-sentry": 0.3.0 "@plone/scripts": "*" "@release-it/conventional-changelog": 5.1.1 @@ -13332,7 +13347,7 @@ __metadata: languageName: node linkType: hard -"react-aria-components@npm:^1.1.1": +"react-aria-components@npm:1.2.0, react-aria-components@npm:^1.1.1": version: 1.2.0 resolution: "react-aria-components@npm:1.2.0" dependencies: @@ -13366,7 +13381,7 @@ __metadata: languageName: node linkType: hard -"react-aria@npm:^3.33.0": +"react-aria@npm:3.33.0, react-aria@npm:^3.33.0": version: 3.33.0 resolution: "react-aria@npm:3.33.0" dependencies: @@ -15993,6 +16008,17 @@ __metadata: languageName: node linkType: hard +"usehooks-ts@npm:3.1.0": + version: 3.1.0 + resolution: "usehooks-ts@npm:3.1.0" + dependencies: + lodash.debounce: ^4.0.8 + peerDependencies: + react: ^16.8.0 || ^17 || ^18 + checksum: 4f850c0c5ab408afa52fa2ea2c93c488cd7065c82679eb1fb62cba12ca4c57ff62d52375acc6738823421fe6579ce3adcea1e2dc345ce4f549c593d2e51455b3 + languageName: node + linkType: hard + "util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2"