updates #53
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update image deps | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
workflow_dispatch: | |
inputs: | |
k0s-version: | |
description: 'K0s version for discovering image versions' | |
required: false | |
push: | |
branches: | |
- sgalsaleh/sc-108755/use-chainguard-images-for-embedded-cluster | |
jobs: | |
update-k0s-images: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Compile buildtools | |
run: | | |
make buildtools | |
- name: Update k0s images | |
env: | |
REGISTRY_SERVER: docker.io | |
REGISTRY_USER: ${{ secrets.DOCKERHUB_USER }} | |
REGISTRY_PASS: ${{ secrets.DOCKERHUB_PASSWORD }} | |
run: output/bin/buildtools update images k0s | |
- name: Create Pull Request # creates a PR if there are differences | |
uses: peter-evans/create-pull-request@v6 | |
id: cpr | |
with: | |
token: ${{ secrets.AUTOMATED_PR_GH_PAT }} | |
commit-message: 'Update image versions' | |
title: 'Automated image updates' | |
branch: automation/image-dependencies | |
delete-branch: true | |
labels: | | |
automated-pr | |
images | |
type::security | |
draft: false | |
# base: "main" | |
base: "sgalsaleh/sc-108755/use-chainguard-images-for-embedded-cluster" | |
body: "Automated changes by the [image-deps-updater](https://github.com/replicatedhq/embedded-cluster/blob/main/.github/workflows/image-deps-updater.yaml) GitHub action" | |
- name: Check outputs | |
if: ${{ steps.cpr.outputs.pull-request-number }} | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |