Skip to content

Commit

Permalink
feat: use new contents addon
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed May 10, 2024
1 parent 9b27e11 commit 3bff486
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 4 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/newcontents.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@eeacms/volto-taxonomy",
"volto-feedback",
"volto-slimheader",
"volto-contents-next"
"@plone-collective/volto-contents-next"
],
"scripts": {
"prepare": "husky install",
Expand Down Expand Up @@ -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",
Expand Down
32 changes: 29 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 3bff486

Please sign in to comment.