Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build apps into the container image #17

Merged
merged 8 commits into from
Jul 11, 2024
33 changes: 31 additions & 2 deletions .github/workflows/easycloud-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: EasyCloud Build

# The EasyCloud source is packaged as a container image.
# This is a workaround because releases can not be created without tags
# This is a workaround because releases can not be created without tags
# and we want to be able to create snapshots from branches.

on:
Expand Down Expand Up @@ -46,6 +46,31 @@ jobs:
with:
submodules: true

- name: Set up node with version from package.json's engines
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: "package.json"

- name: Install dependencies & build simplesettings app
env:
CYPRESS_INSTALL_BINARY: 0
PUPPETEER_SKIP_DOWNLOAD: true
run: |
cd apps-custom/simplesettings
npm ci
npm run build
cd ../..

- name: Install dependencies & build user_oidc app
env:
CYPRESS_INSTALL_BINARY: 0
PUPPETEER_SKIP_DOWNLOAD: true
run: |
cd apps-external/user_oidc
npm ci
npm run build
cd ../..

- name: Zip dependencies
run: |
buildDate=$(date +%s)
Expand Down Expand Up @@ -89,7 +114,11 @@ jobs:
version.json \
-x "apps/theming/img/background/**" \
-x "apps/*/tests/**" \
-x "apps-external/*/tests**" \
-x "apps-*/*/.git" \
-x "apps-*/*/.github" \
-x "apps-*/*/src**" \
-x "apps-*/*/node_modules**" \
-x "apps-*/*/tests**" \
-x "**/cypress/**" \
-x "*.git*" \
-x "*.editorconfig*"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/apps/files_external/tests/config.*.php
# IONOS: this should not be upsteamed!
!/apps-external/viewer
!/apps-external/user_oidc
!/apps-custom/*

# apps modules
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
[submodule "apps-custom/simplesettings"]
path = apps-custom/simplesettings
url = [email protected]:IONOS-Productivity/nc-simplesettings.git
[submodule "apps-external/user_oidc"]
path = apps-external/user_oidc
url = https://github.com/nextcloud/user_oidc.git
2 changes: 1 addition & 1 deletion IONOS
Submodule IONOS updated from 737dc0 to 93ce4f
2 changes: 1 addition & 1 deletion apps-custom/simplesettings
Submodule simplesettings updated 0 files
1 change: 1 addition & 0 deletions apps-external/user_oidc
Submodule user_oidc added at eaec3b
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@
"extends @nextcloud/browserslist-config"
],
"engines": {
"node": "^20.0.0",
"npm": "^10.0.0"
"node": "^20.15.0",
"npm": "^10.7.0"
},
"overrides": {
"colors": "1.4.0"
Expand Down
Loading