forked from home-assistant/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request home-assistant#65442 from home-assistant/rc
- Loading branch information
Showing
6,398 changed files
with
177,851 additions
and
55,108 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,12 @@ on: | |
|
||
env: | ||
BUILD_TYPE: core | ||
DEFAULT_PYTHON: 3.8 | ||
DEFAULT_PYTHON: 3.9 | ||
|
||
jobs: | ||
init: | ||
name: Initialize build | ||
if: github.repository_owner == 'home-assistant' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
architectures: ${{ steps.info.outputs.architectures }} | ||
|
@@ -62,7 +63,7 @@ jobs: | |
name: Build PyPi package | ||
needs: init | ||
runs-on: ubuntu-latest | ||
if: needs.init.outputs.publish == 'true' | ||
if: github.repository_owner == 'home-assistant' && needs.init.outputs.publish == 'true' | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
@@ -75,8 +76,10 @@ jobs: | |
- name: Build package | ||
shell: bash | ||
run: | | ||
pip install twine wheel | ||
python setup.py sdist bdist_wheel | ||
# Remove dist, build, and homeassistant.egg-info | ||
# when build locally for testing! | ||
pip install twine build | ||
python -m build | ||
- name: Upload package | ||
shell: bash | ||
|
@@ -88,6 +91,7 @@ jobs: | |
build_base: | ||
name: Build ${{ matrix.arch }} base core image | ||
if: github.repository_owner == 'home-assistant' | ||
needs: init | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -118,13 +122,13 @@ jobs: | |
echo "${{ github.sha }};${{ github.ref }};${{ github.event_name }};${{ github.actor }}" > rootfs/OFFICIAL_IMAGE | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1.10.0 | ||
uses: docker/login-action@v1.12.0 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1.10.0 | ||
uses: docker/login-action@v1.12.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
|
@@ -143,6 +147,7 @@ jobs: | |
|
||
build_machine: | ||
name: Build ${{ matrix.machine }} machine core image | ||
if: github.repository_owner == 'home-assistant' | ||
needs: ["init", "build_base"] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
@@ -182,13 +187,13 @@ jobs: | |
fi | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1.10.0 | ||
uses: docker/login-action@v1.12.0 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1.10.0 | ||
uses: docker/login-action@v1.12.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
|
@@ -206,6 +211,7 @@ jobs: | |
|
||
publish_ha: | ||
name: Publish version files | ||
if: github.repository_owner == 'home-assistant' | ||
needs: ["init", "build_machine"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -238,20 +244,21 @@ jobs: | |
|
||
publish_container: | ||
name: Publish meta container | ||
if: github.repository_owner == 'home-assistant' | ||
needs: ["init", "build_base"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1.10.0 | ||
uses: docker/login-action@v1.12.0 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1.10.0 | ||
uses: docker/login-action@v1.12.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
|
Oops, something went wrong.