Skip to content
Merged
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
32 changes: 16 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7
with:
go-version-file: go.mod
- name: Check the generated API code matches openapi.yaml
Expand All @@ -36,19 +36,19 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v9
- uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9
with:
version: v2.15.0

chart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: azure/setup-helm@v5
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: azure/setup-helm@2f5e7bc67f1f9972ab16657bb795f36d8f04de0e # v5
with:
version: v4.3.2
- run: helm lint charts/heating-control -f charts/heating-control/ci-values.yaml
Expand All @@ -59,8 +59,8 @@ jobs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: 24
- run: npx --yes --package "renovate@${RENOVATE_VERSION}" -- renovate-config-validator --strict
Expand All @@ -71,8 +71,8 @@ jobs:
needs: [test, lint, chart]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: docker/build-push-action@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
with:
context: .
push: false
Expand All @@ -87,11 +87,11 @@ jobs:
contents: write
packages: write
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
# svu needs the commits and tags since the last release.
fetch-depth: 0
- uses: actions/setup-go@v7
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7
with:
go-version-file: go.mod
- name: Work out the next version
Expand All @@ -105,22 +105,22 @@ jobs:
fi
echo "tag=$tag" >> "$GITHUB_OUTPUT"
echo "version=${tag#v}" >> "$GITHUB_OUTPUT"
- uses: docker/login-action@v4
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4
if: steps.next.outputs.tag != ''
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# The image goes first: if it fails there's no tag, and the next push retries.
- uses: docker/build-push-action@v7
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
if: steps.next.outputs.tag != ''
with:
context: .
push: true
tags: ghcr.io/subpathdev/heating-control:${{ steps.next.outputs.version }}
build-args: VERSION=${{ steps.next.outputs.version }}
labels: org.opencontainers.image.source=https://github.com/subpathdev/heating-control
- uses: azure/setup-helm@v5
- uses: azure/setup-helm@2f5e7bc67f1f9972ab16657bb795f36d8f04de0e # v5
if: steps.next.outputs.tag != ''
with:
version: v4.3.2
Expand Down