From 3a2511dd7e516eb4cccd08d45254d5e8840ed266 Mon Sep 17 00:00:00 2001 From: panigs7 Date: Tue, 8 Apr 2025 01:54:08 -0400 Subject: [PATCH 1/2] update ubi image --- .github/workflows/ubi-version-update.yaml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ubi-version-update.yaml diff --git a/.github/workflows/ubi-version-update.yaml b/.github/workflows/ubi-version-update.yaml new file mode 100644 index 00000000..4f3c1905 --- /dev/null +++ b/.github/workflows/ubi-version-update.yaml @@ -0,0 +1,26 @@ +# Copyright (c) 2025 Dell Inc., or its subsidiaries. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 + +# Reusable workflow to update Dell packages to the latest released version on CSM based projects +name: Update Dell Packages to Latest Released + +on: + workflow_call: + +jobs: + update-dependencies: + runs-on: ubuntu-latest + steps: + + - name: Install skopeo + run: | + sudo apt-get update + sudo apt-get install -y skopeo + + - name: Verify skopeo installation + run: skopeo --version \ No newline at end of file From 53047668a30687dca4f3577e3d3d326e81f30af2 Mon Sep 17 00:00:00 2001 From: panigs7 Date: Tue, 8 Apr 2025 03:13:17 -0400 Subject: [PATCH 2/2] ubi update --- .github/workflows/ubi-version-update.yaml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ubi-version-update.yaml b/.github/workflows/ubi-version-update.yaml index 4f3c1905..bbbafa6e 100644 --- a/.github/workflows/ubi-version-update.yaml +++ b/.github/workflows/ubi-version-update.yaml @@ -17,10 +17,23 @@ jobs: runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install skopeo run: | - sudo apt-get update - sudo apt-get install -y skopeo - - - name: Verify skopeo installation - run: skopeo --version \ No newline at end of file + if ! command -v skopeo &> /dev/null + then + sudo apt-get update + sudo apt-get install -y skopeo + fi + + - name: Get UBI Micro Image Digest + id: get-digest + run: | + digest=$(skopeo inspect docker://registry.access.redhat.com/ubi9/ubi-micro:latest | jq -r '.Digest') + echo "Digest: $digest" + echo "::set-output name=digest::$digest" + + - name: Print Digest + run: echo "The latest UBI micro image digest is ${{ steps.get-digest.outputs.digest }}" \ No newline at end of file