Skip to content

Commit

Permalink
chore: specify more versions for GitHub Actions and GitLab CI (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan authored Feb 28, 2024
1 parent 218576c commit 69957a4
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ concurrency:
jobs:
ci:
if: ${{ !cancelled() && ! failure() }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
- '3.12'
consistency:
if: ${{ !cancelled() && ! failure() }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Git
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
commitlint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: env | sort
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/readthedocs-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
documentation-links:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: readthedocs/actions/preview@cc0920454cf03ca8a3fbd3cbaa2ce2e509e70636 # v1.2
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release
jobs:
pages-build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
needs: pages-build
permissions:
contents: write
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Download release notes
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
Expand All @@ -55,7 +55,7 @@ jobs:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- '3.12'
package-publish:
needs: release-publish
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: pdm-project/setup-pdm@c050bdcb2405837648035b6678c75609d53a749f # v4
Expand All @@ -122,7 +122,7 @@ jobs:
permissions:
id-token: write
pages: write
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- id: deployment
name: Deploy to GitHub Pages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
image: ghcr.io/renovatebot/renovate:37.214.0@sha256:f5351474828f2197862b18adfd15d9923e44f294c4429868ac0013df5385362f
options: '--user root'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: env | sort
- id: generate-token
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
commitlint:
image:
name: commitlint/commitlint:latest
name: commitlint/commitlint:18.6.2
entrypoint: [""]
interruptible: true
rules:
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dev-container-publish:
image: docker:latest
image: docker:25.0.3
parallel:
matrix:
- PYTHON_VERSION:
Expand Down Expand Up @@ -29,7 +29,7 @@ dev-container-publish:
--tag ${CI_REGISTRY_IMAGE}/dev:py${PYTHON_VERSION} \
--target dev
services:
- docker:dind
- docker:25.0.3-dind
stage: build
variables:
DOCKER_TLS_CERTDIR: /certs
Expand Down
6 changes: 3 additions & 3 deletions .gitlab/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pages-build:
- make release-notes > release-notes.md
stage: release
release-publish:
image: registry.gitlab.com/gitlab-org/release-cli:latest
image: registry.gitlab.com/gitlab-org/release-cli:v0.16.0
needs:
- pages-build
release:
Expand All @@ -24,7 +24,7 @@ release-publish:
- echo "Running the release job."
stage: release
container-publish:
image: docker:latest
image: docker:25.0.3
needs:
- release-publish
parallel:
Expand Down Expand Up @@ -65,7 +65,7 @@ container-publish:
--tag ${CI_REGISTRY_IMAGE}:py${PYTHON_VERSION}-${CI_COMMIT_TAG} \
--target prod
services:
- docker:dind
- docker:25.0.3-dind
stage: release
variables:
DOCKER_TLS_CERTDIR: /certs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ concurrency:
jobs:
ci:
if: {{ '${{ !cancelled() && ! failure() }}' }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
[%- if project_name == "Serious Scaffold Python" %]
consistency:
if: {{ '${{ !cancelled() && ! failure() }}' }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
commitlint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: env | sort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ concurrency:
group: {{ '${{ github.workflow }}-${{ github.ref }}' }}
jobs:
documentation-links:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: readthedocs/actions/preview@cc0920454cf03ca8a3fbd3cbaa2ce2e509e70636 # v1.2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Release
jobs:
pages-build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
needs: pages-build
permissions:
contents: write
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Download release notes
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
Expand All @@ -56,7 +56,7 @@ jobs:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
- uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
[%- endif %]
package-publish:
needs: release-publish
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: pdm-project/setup-pdm@c050bdcb2405837648035b6678c75609d53a749f # v4
Expand All @@ -133,7 +133,7 @@ jobs:
permissions:
id-token: write
pages: write
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- id: deployment
name: Deploy to GitHub Pages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
RENOVATE_TOKEN: {{ '${{ secrets.RENOVATE_TOKEN }}' }}
image: ghcr.io/renovatebot/renovate:37.214.0@sha256:f5351474828f2197862b18adfd15d9923e44f294c4429868ac0013df5385362f
options: '--user root'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: env | sort
- id: generate-token
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
commitlint:
image:
name: commitlint/commitlint:latest
name: commitlint/commitlint:18.6.2
entrypoint: [""]
interruptible: true
rules:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[% from pathjoin("includes", "version_compare.jinja") import version_between -%]
dev-container-publish:
image: docker:latest
image: docker:25.0.3
parallel:
matrix:
- PYTHON_VERSION:
Expand Down Expand Up @@ -40,7 +40,7 @@ dev-container-publish:
--tag ${CI_REGISTRY_IMAGE}/dev:py${PYTHON_VERSION} \
--target dev
services:
- docker:dind
- docker:25.0.3-dind
stage: build
variables:
DOCKER_TLS_CERTDIR: /certs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pages-build:
- make release-notes > release-notes.md
stage: release
release-publish:
image: registry.gitlab.com/gitlab-org/release-cli:latest
image: registry.gitlab.com/gitlab-org/release-cli:v0.16.0
needs:
- pages-build
release:
Expand All @@ -25,7 +25,7 @@ release-publish:
- echo "Running the release job."
stage: release
container-publish:
image: docker:latest
image: docker:25.0.3
needs:
- release-publish
parallel:
Expand Down Expand Up @@ -76,7 +76,7 @@ container-publish:
--tag ${CI_REGISTRY_IMAGE}:py${PYTHON_VERSION}-${CI_COMMIT_TAG} \
--target prod
services:
- docker:dind
- docker:25.0.3-dind
stage: release
variables:
DOCKER_TLS_CERTDIR: /certs
Expand Down

0 comments on commit 69957a4

Please sign in to comment.