Skip to content
Open
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
37 changes: 0 additions & 37 deletions .github/workflows/update-builder.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/update-ca-bundle.yaml

This file was deleted.

115 changes: 115 additions & 0 deletions .github/workflows/update-deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Update Dependencies

on:
schedule:
- cron: '0 */4 * * *'
- cron: '0 6 * * *'
workflow_dispatch:

permissions:
contents: write
pull-requests: write
packages: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
update-builder:
name: Update builder-jammy-full image
runs-on: "ubuntu-latest"
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: knative/actions/setup-go@main
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Build and Push
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
docker run -d -p 5000:5000 --name registry registry:2.7
echo '{"insecure-registries" : "localhost:5000" }' | \
sudo tee /etc/docker/daemon.json
mkdir -p "$HOME/.config/containers/"
echo -e '\n[[registry]]\nlocation = "localhost:5000"\ninsecure = true\n' >> \
"$HOME/.config/containers/registries.conf"
skopeo login ghcr.io -u gh-action -p "$GITHUB_TOKEN"
docker login ghcr.io -u gh-action -p "$GITHUB_TOKEN"
make __update-builder

update-python:
name: Update func-python version
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: knative/actions/setup-go@main
- name: Run update script
run: go run ./hack/cmd/update-python-platform/main.go
- name: Run make generate
run: make generate/zz_filesystem_generated.go
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Run smoke tests
run: make test-python
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ github.token }}
commit-message: 'chore: update func-python version'
title: 'chore: update func-python version'
body: |
This PR updates the func-python version in the Python scaffolding templates to the latest version available on PyPI.

This PR was automatically generated by the [update-deps workflow](https://github.com/${{ github.repository }}/actions/workflows/update-deps.yaml).
branch: update-func-python
delete-branch: true
committer: Knative Automation <automation@knative.team>
author: Knative Automation <automation@knative.team>
assignees: gauron99, matejvasek, lkingland
base: main

update-platforms:
name: Update ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- name: "CA bundle"
script: ./hack/update-ca-bundle.js
npm_deps: "octokit@3.2.1"
with_java: false
with_go: false
- name: "Quarkus Platform"
script: ./hack/update-quarkus-platform.js
npm_deps: "xml2js@0.6.2 octokit@3.2.1"
with_java: true
with_go: true
- name: "Spring Boot Platform"
script: ./hack/update-springboot-platform.js
npm_deps: "xml2js@0.6.2 octokit@3.2.1 yaml@2.4.5 semver@7.6.3"
with_java: true
with_go: true
steps:
- uses: actions/checkout@v4
- uses: knative/actions/setup-go@main
if: matrix.with_go
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: actions/setup-java@v4
if: matrix.with_java
with:
java-version: 21
distribution: 'temurin'
- name: Install NPM deps.
run: npm install ${{ matrix.npm_deps }}
- name: Create PR
env:
GITHUB_TOKEN: ${{ github.token }}
run: node ${{ matrix.script }}
54 changes: 0 additions & 54 deletions .github/workflows/update-python-platform.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/update-quarkus-platform.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/update-springboot-platform.yaml

This file was deleted.