Skip to content

Commit

Permalink
fix(httpd): don't include sha256 in image.tag value (#915)
Browse files Browse the repository at this point in the history
* fix(httpd): don't include sha256 in `image.tag` value

* bump chart version
  • Loading branch information
lemeurherve authored Nov 1, 2023
1 parent 098f530 commit fcfde39
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/httpd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: httpd helm chart for Kubernetes
name: httpd
version: 0.2.3
version: 0.2.4
appVersion: v2.4
maintainers:
- email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion charts/httpd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
replicaCount: 1
image:
repository: httpd
tag: 2.4@sha256:2f1ec45327a35711f293cf543c2e0efadfd44bc71e8081dcd76a558b99778005
tag: 2.4.58
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
Expand Down
23 changes: 15 additions & 8 deletions updatecli/updatecli.d/httpd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,30 @@ scms:
branch: "{{ .github.branch }}"

sources:
latestHttpdRelease:
name: Get latest digest of the Docker Image for httpd, in version 2.4
kind: dockerdigest
latestRelease:
kind: githubrelease
name: "Get latest apache/httpd release"
spec:
owner: "apache"
repository: "httpd"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"

conditions:
checkDockerImagePublished:
name: "Test httpd:<latest_version> docker image tag"
kind: dockerimage
spec:
image: "httpd"
tag: "2.4"
## Tag from source
architectures:
- amd64
- arm64

# no condition to test httpd docker image availability as we're using a digest from docker hub

targets:
updateHttpd:
name: "Update httpd docker image version"
sourceid: latestHttpdRelease
sourceid: latestRelease
kind: helmchart
spec:
name: charts/httpd
Expand All @@ -41,7 +48,7 @@ actions:
default:
kind: github/pullrequest
scmid: default
title: Bump `httpd` docker images and helm chart versions
title: Bump `httpd` docker image version to {{ source "latestRelease" }}
spec:
labels:
- dependencies
Expand Down

0 comments on commit fcfde39

Please sign in to comment.