Skip to content

Commit

Permalink
Merge branch 'main' into lemeurherve-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
dduportal authored Nov 1, 2023
2 parents 0e64d99 + 76f2180 commit 7effa13
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/check-chart-versions-bump.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Check chart version bump
on:
pull_request:
paths:
- 'charts/**'
jobs:
check_version_bump_on_modified_charts:
runs-on: ubuntu-latest
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ on:
push:
branches:
- main
paths:
- 'charts/**'
pull_request:
paths:
- 'charts/**'
workflow_dispatch:
env:
UNITTEST_VERSION: v0.3.5
Expand Down
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 7effa13

Please sign in to comment.