@@ -17,20 +17,20 @@ jobs:
17
17
architectures : ${{ steps.info.outputs.architectures }}
18
18
version : ${{ steps.version.outputs.version }}
19
19
steps :
20
- - name : Checkout the repository
21
-
22
- with :
23
- fetch-depth : 0
20
+ - name : Checkout the repository
21
+
22
+ with :
23
+ fetch-depth : 0
24
24
25
- - name : Get information
26
- id : info
27
- uses : home-assistant/actions/helpers/info@master
25
+ - name : Get information
26
+ id : info
27
+ uses : home-assistant/actions/helpers/info@master
28
28
29
- - name : Get version
30
- id : version
31
- uses : home-assistant/actions/helpers/version@master
32
- with :
33
- type : ${{ env.BUILD_TYPE }}
29
+ - name : Get version
30
+ id : version
31
+ uses : home-assistant/actions/helpers/version@master
32
+ with :
33
+ type : ${{ env.BUILD_TYPE }}
34
34
35
35
build :
36
36
name : Build ${{ matrix.arch }} base image
@@ -40,58 +40,58 @@ jobs:
40
40
matrix :
41
41
arch : ${{ fromJson(needs.init.outputs.architectures) }}
42
42
steps :
43
- - name : Checkout the repository
44
-
43
+ - name : Checkout the repository
44
+
45
45
46
- - name : Get changed files
47
- id : changed_files
48
- if : github.event_name != 'release'
49
- uses : jitterbit/get-changed-files@v1
46
+ - name : Get changed files
47
+ id : changed_files
48
+ if : github.event_name != 'release'
49
+ uses : jitterbit/get-changed-files@v1
50
50
51
- - name : Check if requirements files changed
52
- id : requirements
53
- run : |
54
- if [[ "${{ steps.changed_files.outputs.all }}" =~ requirements.txt ]]; then
55
- echo "::set-output name= changed:: true"
56
- fi
51
+ - name : Check if requirements files changed
52
+ id : requirements
53
+ run : |
54
+ if [[ "${{ steps.changed_files.outputs.all }}" =~ requirements.txt ]]; then
55
+ echo "changed= true" >> $GITHUB_OUTPUT
56
+ fi
57
57
58
- - name : Build wheels
59
- uses :
home-assistant/[email protected]
60
- if : steps.requirements.outputs.changed == 'true'
61
- with :
62
- tag : musllinux_1_2
63
- abi : cp310
64
- arch : ${{ matrix.arch }}
65
- wheels-key : ${{ secrets.WHEELS_KEY }}
66
- apk : " mariadb-dev;postgresql-dev;libffi-dev"
67
- requirements : " requirements.txt"
68
-
69
- - name : Login to DockerHub
70
- if : github.event_name == 'release'
71
-
72
- with :
73
- username : ${{ secrets.DOCKERHUB_USERNAME }}
74
- password : ${{ secrets.DOCKERHUB_TOKEN }}
75
-
76
- - name : Login to GitHub Container Registry
77
- if : github.event_name == 'release'
78
-
79
- with :
80
- registry : ghcr.io
81
- username : ${{ github.repository_owner }}
82
- password : ${{ secrets.GITHUB_TOKEN }}
58
+ - name : Build wheels
59
+ uses :
home-assistant/[email protected]
60
+ if : steps.requirements.outputs.changed == 'true'
61
+ with :
62
+ tag : musllinux_1_2
63
+ abi : cp310
64
+ arch : ${{ matrix.arch }}
65
+ wheels-key : ${{ secrets.WHEELS_KEY }}
66
+ apk : " mariadb-dev;postgresql-dev;libffi-dev"
67
+ requirements : " requirements.txt"
83
68
84
- - name : Set build arguments
85
- if : github.event_name != 'release'
86
- run : echo "BUILD_ARGS=--test" >> $GITHUB_ENV
69
+ - name : Login to DockerHub
70
+ if : github.event_name == 'release'
71
+
72
+ with :
73
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
74
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
87
75
88
- - name : Build base image
89
- uses :
home-assistant/[email protected]
90
- with :
91
- args : |
92
- $BUILD_ARGS \
93
- --${{ matrix.arch }} \
94
- --target /data \
95
- --generic ${{ needs.init.outputs.version }}
96
- env :
97
- CAS_API_KEY : ${{ secrets.CAS_TOKEN }}
76
+ - name : Login to GitHub Container Registry
77
+ if : github.event_name == 'release'
78
+
79
+ with :
80
+ registry : ghcr.io
81
+ username : ${{ github.repository_owner }}
82
+ password : ${{ secrets.GITHUB_TOKEN }}
83
+
84
+ - name : Set build arguments
85
+ if : github.event_name != 'release'
86
+ run : echo "BUILD_ARGS=--test" >> $GITHUB_ENV
87
+
88
+ - name : Build base image
89
+ uses :
home-assistant/[email protected]
90
+ with :
91
+ args : |
92
+ $BUILD_ARGS \
93
+ --${{ matrix.arch }} \
94
+ --target /data \
95
+ --generic ${{ needs.init.outputs.version }}
96
+ env :
97
+ CAS_API_KEY : ${{ secrets.CAS_TOKEN }}
0 commit comments