You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Action to check if the base image was updated and your image (published on DockerHub) needs to be rebuilt. This action will use Docker's API to compare the base layers of your image with the `base-image`, without the need to pull the images.
9
+
This action checks if a Docker image needs to be updated based on the base image it uses (e.g. `FROM nginx:1.21.0`). By default it checks for all platforms, but you can specify the platforms to check.
> If any of the platformsis not present in either the base-image or the image, the action will exit with an error.
153
+
> The `platforms` input is optional and defaults to `all`.
148
154
149
155
## Debugging
150
156
151
-
To debug the action, you can set the `DEBUG` environment variable to `true` in the workflow file. The variable can be set at any level.
152
-
153
-
```yaml
154
-
name: Check docker image
155
-
156
-
on:
157
-
schedule:
158
-
- cron: '0 4 * * *'
159
-
160
-
jobs:
161
-
docker:
162
-
runs-on: ubuntu-latest
163
-
steps:
164
-
- name: Check if update available
165
-
id: check
166
-
uses: lucacome/docker-image-update-checker@v1
167
-
with:
168
-
base-image: nginx:1.21.0
169
-
image: user/app:latest
170
-
env:
171
-
DEBUG: true
172
-
```
173
-
174
-
To make it more convenient, you can use `${{ secrets.ACTIONS_STEP_DEBUG }}` to enable debugging only when needed.
175
-
176
-
```yaml
177
-
name: Check docker image
178
-
179
-
on:
180
-
schedule:
181
-
- cron: '0 4 * * *'
182
-
183
-
jobs:
184
-
docker:
185
-
runs-on: ubuntu-latest
186
-
steps:
187
-
- name: Check if update available
188
-
id: check
189
-
uses: lucacome/docker-image-update-checker@v1
190
-
with:
191
-
base-image: nginx:1.21.0
192
-
image: user/app:latest
193
-
env:
194
-
DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }}
195
-
```
196
-
197
-
This works even when re-running the action with the `Re-run job` button and the `Enable debug logging` checkbox checked.
198
-
To read more about debugging actions, see [Debugging actions](https://docs.github.com/en/actions/managing-workflow-runs/enabling-debug-logging#enabling-step-debug-logging).
157
+
If something is not working as expected, you can enable debug logging to get more information (a lot more information).
158
+
You can re-run the action with the `Enable debug logging` checkbox checked for a single run or set the `ACTIONS_STEP_DEBUG` secret to `true` in the repository's secrets.
159
+
For more information on debugging actions, see [Enabling debug logging](https://docs.github.com/en/actions/managing-workflow-runs/enabling-debug-logging).
0 commit comments