Commit 4f1c416
authored
ci: use gha cache and fix release-please triggers (#966)
This pull request updates the Docker build and caching strategy in the
CI and release GitHub Actions workflows. The main improvements are
switching to GitHub Actions (GHA) cache storage for Docker layers,
simplifying the build and test steps, and ensuring certain jobs are
skipped for release-please branches.
**CI Workflow improvements:**
* Switched Docker image caching from manual artifact upload/download to
using `docker/build-push-action` with GHA cache storage, streamlining
the build and test process (`.github/workflows/ci.yml`).
[[1]](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR129-R146)
[[2]](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fL161-R168)
* Added job conditions to skip Docker build and test steps for
release-please branches in pull requests, reducing unnecessary CI runs
(`.github/workflows/ci.yml`).
[[1]](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR129-R146)
[[2]](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fL161-R168)
**Release Workflow improvements:**
* Removed local Docker cache management and replaced with GHA cache for
Docker buildx, simplifying cache handling and improving cache sharing
across runners (`.github/workflows/release.yml`).
[[1]](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L157-L164)
[[2]](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L177-R170)
[[3]](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L191-L195)
These changes make the workflows more efficient, easier to maintain, and
better leverage GitHub Actions built-in caching for Docker images.1 parent 87f1aeb commit 4f1c416
2 files changed
Lines changed: 19 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
| 133 | + | |
133 | 134 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 135 | + | |
141 | 136 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
145 | 142 | | |
146 | 143 | | |
147 | 144 | | |
148 | 145 | | |
| 146 | + | |
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
| |||
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 159 | + | |
166 | 160 | | |
167 | | - | |
168 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | 157 | | |
166 | 158 | | |
167 | 159 | | |
| |||
174 | 166 | | |
175 | 167 | | |
176 | 168 | | |
177 | | - | |
178 | | - | |
| 169 | + | |
| 170 | + | |
179 | 171 | | |
180 | 172 | | |
181 | 173 | | |
| |||
188 | 180 | | |
189 | 181 | | |
190 | 182 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | 183 | | |
197 | 184 | | |
198 | 185 | | |
| |||
0 commit comments