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
Copy file name to clipboardExpand all lines: content/actions/how-tos/manage-runners/larger-runners/use-custom-images.md
-18Lines changed: 0 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,24 +89,6 @@ jobs:
89
89
# Add any steps to download and setup any dependencies here
90
90
```
91
91
92
-
### Conditionals
93
-
94
-
The `snapshot` keyword supports conditional execution using the `if` keyword around the snapshot mapping. You can use conditions to control when an image snapshot is created. For example, the following job skips image creation for tag builds.
95
-
96
-
```yaml
97
-
jobs:
98
-
build:
99
-
runs-on: my-image-generation-runner
100
-
snapshot:
101
-
if: {% raw %}${{ ! startsWith(github.ref, 'refs/tags/') }}{% endraw %}
102
-
image-name: my-custom-image
103
-
version: 2.*
104
-
steps:
105
-
# Add any steps to download and setup any dependencies here
106
-
```
107
-
108
-
For more information about the `if` keyword, see [AUTOTITLE](/actions/writing-workflows/choosing-when-your-workflow-runs/using-conditions-to-control-job-execution).
109
-
110
92
## Versioning
111
93
112
94
When you generate custom images, {% data variables.product.github %} automatically assigns version numbers to help you manage updates and track image history.
0 commit comments