Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
6f67ae1d
Unverified
Commit
6f67ae1d
authored
2 years ago
by
Franck Nijhof
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add nightly frontend to nightly builds (#74327)
parent
2464322d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/builder.yml
+24
-0
24 additions, 0 deletions
.github/workflows/builder.yml
Dockerfile
+5
-2
5 additions, 2 deletions
Dockerfile
with
29 additions
and
2 deletions
.github/workflows/builder.yml
+
24
−
0
View file @
6f67ae1d
...
@@ -102,6 +102,17 @@ jobs:
...
@@ -102,6 +102,17 @@ jobs:
-
name
:
Checkout the repository
-
name
:
Checkout the repository
uses
:
actions/checkout@v3.0.2
uses
:
actions/checkout@v3.0.2
-
name
:
Download nightly wheels of frontend
if
:
needs.init.outputs.channel == 'dev'
uses
:
dawidd6/action-download-artifact@v2
with
:
github_token
:
${{secrets.GITHUB_TOKEN}}
repo
:
home-assistant/frontend
branch
:
dev
workflow
:
nightly.yml
workflow_conclusion
:
success
name
:
wheels
-
name
:
Set up Python ${{ env.DEFAULT_PYTHON }}
-
name
:
Set up Python ${{ env.DEFAULT_PYTHON }}
if
:
needs.init.outputs.channel == 'dev'
if
:
needs.init.outputs.channel == 'dev'
uses
:
actions/setup-python@v4.0.0
uses
:
actions/setup-python@v4.0.0
...
@@ -116,6 +127,19 @@ jobs:
...
@@ -116,6 +127,19 @@ jobs:
python3 -m pip install --use-deprecated=legacy-resolver .
python3 -m pip install --use-deprecated=legacy-resolver .
version="$(python3 script/version_bump.py nightly)"
version="$(python3 script/version_bump.py nightly)"
if [[ "$(ls home_assistant_frontend*.whl)" =~ ^home_assistant_frontend-(.*)-py3-none-any.whl$ ]]; then
echo "Found frontend wheel, setting version to: ${BASH_REMATCH[1]}"
frontend_version="${BASH_REMATCH[1]}" yq \
--inplace e -o json \
'.requirements = ["home-assistant-frontend=="+env(frontend_version)]' \
homeassistant/components/frontend/manifest.json
sed -i "s|home-assistant-frontend==.*|home-assistant-frontend==${BASH_REMATCH[1]}|" \
homeassistant/package_constraints.txt
python -m script.gen_requirements_all
fi
-
name
:
Write meta info file
-
name
:
Write meta info file
shell
:
bash
shell
:
bash
run
:
|
run
:
|
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
5
−
2
View file @
6f67ae1d
...
@@ -13,9 +13,12 @@ COPY homeassistant/package_constraints.txt homeassistant/homeassistant/
...
@@ -13,9 +13,12 @@ COPY homeassistant/package_constraints.txt homeassistant/homeassistant/
RUN
\
RUN
\
pip3
install
--no-cache-dir
--no-index
--only-binary
=
:all:
--find-links
"
${
WHEELS_LINKS
}
"
\
pip3
install
--no-cache-dir
--no-index
--only-binary
=
:all:
--find-links
"
${
WHEELS_LINKS
}
"
\
-r
homeassistant/requirements.txt
--use-deprecated
=
legacy-resolver
-r
homeassistant/requirements.txt
--use-deprecated
=
legacy-resolver
COPY
requirements_all.txt homeassistant/
COPY
requirements_all.txt
home_assistant_frontend-*
homeassistant/
RUN
\
RUN
\
pip3
install
--no-cache-dir
--no-index
--only-binary
=
:all:
--find-links
"
${
WHEELS_LINKS
}
"
\
if
ls
homeassistant/home_assistant_frontend
*
.whl 1> /dev/null 2>&1
;
then
\
pip3
install
--no-cache-dir
--no-index
homeassistant/home_assistant_frontend-
*
.whl
;
\
fi
\
&&
pip3
install
--no-cache-dir
--no-index
--only-binary
=
:all:
--find-links
"
${
WHEELS_LINKS
}
"
\
-r
homeassistant/requirements_all.txt
--use-deprecated
=
legacy-resolver
-r
homeassistant/requirements_all.txt
--use-deprecated
=
legacy-resolver
## Setup Home Assistant Core
## Setup Home Assistant Core
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment