Skip to content

Commit de05321

Browse files
committed
ci: Update Tekton scheduled pipelines.
Signed-off-by: Paulo Vital <[email protected]>
1 parent ec66b9d commit de05321

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.tekton/.currency/currency-scheduled-eventlistener.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ kind: CronJob
4141
metadata:
4242
name: python-currency-cronjob
4343
spec:
44-
schedule: "35 0 * * Mon-Fri"
44+
schedule: "35 1 * * Mon-Fri"
4545
jobTemplate:
4646
spec:
4747
template:
4848
spec:
4949
containers:
5050
- name: http-request-to-el-svc
51-
# quay.io/curl/curl:8.11.0
52-
image: quay.io/curl/curl@sha256:b90c4281fe1a4c6cc2b6a665c531d448bba078d75ffa98187e7d7e530fca5209
51+
image: quay.io/curl/curl:latest
5352
imagePullPolicy: IfNotPresent
5453
args: ["curl", "-X", "POST", "--data", "{}", "el-python-currency-cron-listener.default.svc.cluster.local:8080"]
5554
restartPolicy: OnFailure

.tekton/.currency/currency-tasks.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ spec:
1111
mountPath: /workspace
1212
steps:
1313
- name: clone-repo
14-
# public.ecr.aws/docker/library/alpine:3.20.3
15-
image: public.ecr.aws/docker/library/alpine@sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433bb9d6d1ad85
14+
image: public.ecr.aws/docker/library/alpine:latest
1615
script: |
1716
#!/bin/sh
1817
echo "Installing git"
@@ -33,14 +32,14 @@ spec:
3332
mountPath: /workspace
3433
steps:
3534
- name: generate-currency-report
36-
# public.ecr.aws/docker/library/python:3.12.10-bookworm
37-
image: public.ecr.aws/docker/library/python@sha256:4ea730e54e2a87b716ffc58a426bd627baa182a3d4d5696d05c1bca2dde775aa
35+
image: public.ecr.aws/docker/library/python:3.12-bookworm
3836
script: |
3937
#!/usr/bin/env bash
4038
cd /workspace/python-sensor/.tekton/.currency
4139
4240
python -m venv /tmp/venv
4341
source /tmp/venv/bin/activate
42+
pip install --upgrade pip
4443
pip install -r resources/requirements.txt
4544
4645
python scripts/generate_report.py
@@ -63,8 +62,7 @@ spec:
6362
mountPath: /workspace
6463
steps:
6564
- name: upload-currency-report
66-
# public.ecr.aws/docker/library/alpine:3.20.3
67-
image: public.ecr.aws/docker/library/alpine@sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433bb9d6d1ad85
65+
image: public.ecr.aws/docker/library/alpine:latest
6866
env:
6967
- name: GH_ENTERPRISE_TOKEN
7068
valueFrom:

.tekton/scheduled-eventlistener.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ spec:
6161
spec:
6262
containers:
6363
- name: git
64-
# public.ecr.aws/docker/library/alpine:3.20.3
65-
image: public.ecr.aws/docker/library/alpine@sha256:029a752048e32e843bd6defe3841186fb8d19a28dae8ec287f433bb9d6d1ad85
64+
image: public.ecr.aws/docker/library/alpine:latest
6665
script: |
6766
#!/bin/sh
6867
echo "Installing git"

0 commit comments

Comments
 (0)