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
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Docker Build Check

on:
push:
branches: [ master, next, dev-* ]
branches: [ 'release/**' ]
pull_request:
branches: [ master, next, dev-* ]
branches: [ 'release/**' ]

env:
DSTACK_REV: ${{ github.event.pull_request.head.sha || github.sha }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prek-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Prek checks

on:
push:
branches: [ master, next, dev-* ]
branches: [ 'release/**' ]
pull_request:
branches: [ master, next, dev-* ]
branches: [ 'release/**' ]

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Rust checks

on:
push:
branches: [ master, next, dev-* ]
branches: [ 'release/**' ]
pull_request:
branches: [ master, next, dev-* ]
branches: [ 'release/**' ]

env:
CARGO_TERM_COLOR: always
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ permissions:

on:
push:
branches: [master, next, dev-*]
branches: ['release/**']
pull_request:
branches: [master, next, dev-*]
branches: ['release/**']

env:
CARGO_TERM_COLOR: always
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/spdx-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ name: SPDX License Check

on:
push:
branches: [ master, main ]
branches: [ 'release/**' ]
pull_request:
branches: [ master, main ]
branches: [ 'release/**' ]

jobs:
reuse-lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: REUSE Compliance Check
uses: fsfe/reuse-action@v5
with:
args: lint
args: lint
4 changes: 2 additions & 2 deletions .github/workflows/vmm-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ permissions:

on:
push:
branches: [ master, next, dev-* ]
branches: [ 'release/**' ]
pull_request:
branches: [ master, next, dev-* ]
branches: [ 'release/**' ]

jobs:
build:
Expand Down
21 changes: 19 additions & 2 deletions build/shared/pin-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,25 @@ if [ -z "$PKG_LIST" ]; then
exit 1
fi

echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/${SNAPSHOT_DATE} bookworm main" > /etc/apt/sources.list
echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/${SNAPSHOT_DATE} bookworm-security main" >> /etc/apt/sources.list
# Detect base image suite (e.g. bookworm, trixie). Different Debian releases
# ship different sources layouts (legacy sources.list vs deb822
# sources.list.d/*.sources), so we must wipe both and rewrite from scratch
# pointing at the frozen snapshot for this exact suite. Otherwise the base
# image's default live sources stay active and packages drift on every build.
# shellcheck source=/dev/null
SUITE=$(. /etc/os-release && echo "${VERSION_CODENAME:-}")
if [ -z "$SUITE" ]; then
echo "could not detect Debian suite from /etc/os-release" >&2
exit 1
fi

rm -f /etc/apt/sources.list
rm -f /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources

cat > /etc/apt/sources.list <<EOF
deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/${SNAPSHOT_DATE} ${SUITE} main
deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/${SNAPSHOT_DATE} ${SUITE}-security main
EOF
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/10no-check-valid-until

mkdir -p /etc/apt/preferences.d
Expand Down
Loading