Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T365725 #424

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/update-chart-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---

name: update chart version

'on':
pull_request:
#pull_request_target:

jobs:
update-container-tags:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: git fetch
run: |
git fetch
- name: git checkout
run: |
git checkout ${{ github.head_ref }}

# compare to upstream main branch
- name: git add remote
run: |
git remote add toolforgepaws https://github.com/toolforge/paws.git
- name: git remote update
run: |
git remote update

- name: update values.yaml
run: |
if [[ $(git diff remotes/toolforgepaws/main -- paws/values.yaml) ]]; then
VERSION=$(grep ^version paws/Chart.yaml | perl -ne '$_ =~ /^version: (\d+.\d+.)(\d+)/; $version = $2 + 1; print "$1$version"')
sed -i "s/^version: .*/version: ${VERSION} # patch number managed by github actions/" paws/Chart.yaml
fi

- uses: EndBug/add-and-commit@v7
with:
add: 'paws/Chart.yaml'
author_name: Github Action
author_email: [email protected]
branch: ${{ github.head_ref }}
message: 'auto update of ${{ inputs.imagename }} tag'
pull: --rebase --autostash
2 changes: 1 addition & 1 deletion images/jobber/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM alpine:3.20.0

RUN apk --no-cache add curl jq

WORKDIR /opt/mediawiki
WORKDIR /opt/mediawiki
4 changes: 2 additions & 2 deletions paws/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
apiVersion: v2
description: A Helm chart for PAWS
name: paws
version: "2.12"
version: 3.0.24 # patch number managed by github actions
dependencies:
- name: jupyterhub
version: "3.3.3"
version: 3.3.3
repository: "https://jupyterhub.github.io/helm-chart"
2 changes: 1 addition & 1 deletion paws/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,6 @@ localdev:
enabled: true
image:
name: quay.io/wikimedia-paws-prod/jobber
tag: pr-420 # jobber tag managed by github actions
tag: pr-424 # jobber tag managed by github actions
# mediawikiHacks.image.template safely defines image:tag name in yaml
template: "{{ .Values.localdev.image.name}}:{{.Values.localdev.image.tag }}"
Loading