Adding the sha based version pinnig

This commit is contained in:
Ketan Patel committed 2026-06-03 21:21:06 -04:00
1 parent cf3e12e9d2
commit 34d8b5a299
11 files changed
+2266 -55

No files matched your search

+11 -6
View File
@@ -18,14 +18,13 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.14'
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage
pip install --require-hashes -r requirements.dev.txt
- name: Ruff lint
run: ruff check .
@@ -43,6 +42,13 @@ jobs:
contents: read
packages: write
id-token: write
strategy:
matrix:
include:
- image_tag: ghcr.io/k2patel/apcupsd-client:latest
melange_config: melange.yaml
- image_tag: ghcr.io/k2patel/apcupsd-client-dev:latest
melange_config: melange.dev.yaml
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -55,7 +61,7 @@ jobs:
- name: Build package with melange
run: |
melange build melange.yaml \
melange build ${{ matrix.melange_config }} \
--signing-key melange.rsa \
--arch x86_64,aarch64
@@ -71,6 +77,5 @@ jobs:
with:
config: apko.yaml
archs: x86_64,aarch64
tag: ghcr.io/k2patel/apcupsd-client:latest
tag: ${{ matrix.image_tag }}
keyring-append: melange.rsa.pub