Skip to content

Commit ef0ca1c

Browse files
committed
Trigger new builds whenever the 'alpine' image is updated
1 parent d81e975 commit ef0ca1c

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

ci/release_notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- Fixed issue with `check` always reporting a latest version of `3.0.7`, whatever `source.family` was set
55
- Now setting a `source.family` of `0.9.6` or `0.9.8` is properly supported
66
- Properly handles `sha1` or `md5` fingerprint checks whenever `sha256` is not provided, fails when no fingerprint can be checked, and still always provides `sha256` in the output artifact directory in order to honor the resource contract
7+
- Resource image is rebuild whenever a new `alpine` base image is published

ci/settings.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,37 @@ groups:
4949
- test
5050

5151
jobs:
52+
- name: build
53+
plan:
54+
- (( inline ))
55+
- in_parallel:
56+
- (( append ))
57+
- { get: alpine-latest, trigger: true, params: { format: oci } }
58+
59+
- # task: build-docker-image
60+
config:
61+
inputs:
62+
- (( append ))
63+
- name: alpine-latest
64+
params:
65+
IMAGE_ARG_alpine: alpine-latest/image.tar
66+
67+
- name: build-pr
68+
plan:
69+
- (( inline ))
70+
- in_parallel:
71+
- (( append ))
72+
- { get: alpine-latest, trigger: true, params: { format: oci } }
73+
74+
- {} # put: git-pull-requests
75+
76+
- # task: build-docker-image
77+
config:
78+
inputs:
79+
- (( append ))
80+
- name: alpine-latest
81+
params:
82+
IMAGE_ARG_alpine: alpine-latest/image.tar
5283

5384
- name: test
5485
serial: true
@@ -296,3 +327,11 @@ resources:
296327
file: (( concat "versions/" meta.pipeline ))
297328
private_key: ((github-private-key))
298329
git_user: "((git-commit-name)) <((git-commit-email))>"
330+
331+
- name: alpine-latest
332+
type: registry-image
333+
icon: docker
334+
check_every: 24h
335+
source:
336+
repository: alpine
337+
tag: latest

0 commit comments

Comments
 (0)