Merge pull request #7251 from mxpv/env
This commit is contained in:
commit
182b6995c0
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -9,6 +9,11 @@ on:
|
|||||||
- main
|
- main
|
||||||
- 'release/**'
|
- 'release/**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Go version we currently use to build containerd across all CI.
|
||||||
|
# Note: don't forget to update `Binaries` step, as it contains the matrix of all supported Go versions.
|
||||||
|
GO_VERSION: '1.18.5'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
#
|
#
|
||||||
# golangci-lint
|
# golangci-lint
|
||||||
@ -20,13 +25,12 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.18.5]
|
|
||||||
os: [ubuntu-18.04, macos-12, windows-2019]
|
os: [ubuntu-18.04, macos-12, windows-2019]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: golangci/golangci-lint-action@v3
|
- uses: golangci/golangci-lint-action@v3
|
||||||
@ -46,7 +50,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@ -78,7 +82,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@ -110,7 +114,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: go install github.com/cpuguy83/go-md2man/v2@v2.0.1
|
- run: go install github.com/cpuguy83/go-md2man/v2@v2.0.1
|
||||||
- run: make man
|
- run: make man
|
||||||
@ -148,7 +152,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: |
|
- run: |
|
||||||
set -e -x
|
set -e -x
|
||||||
@ -262,7 +266,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@ -404,7 +408,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
@ -534,7 +538,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: sudo -E PATH=$PATH script/setup/install-gotestsum
|
- run: sudo -E PATH=$PATH script/setup/install-gotestsum
|
||||||
- name: Tests
|
- name: Tests
|
||||||
|
7
.github/workflows/nightly.yml
vendored
7
.github/workflows/nightly.yml
vendored
@ -6,6 +6,9 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '.github/workflows/nightly.yml'
|
- '.github/workflows/nightly.yml'
|
||||||
|
|
||||||
|
env:
|
||||||
|
GO_VERSION: '1.18.5'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
name: Linux
|
name: Linux
|
||||||
@ -18,7 +21,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@ -155,7 +158,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -5,6 +5,9 @@ on:
|
|||||||
|
|
||||||
name: Containerd Release
|
name: Containerd Release
|
||||||
|
|
||||||
|
env:
|
||||||
|
GO_VERSION: '1.18.5'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: Check Signed Tag
|
name: Check Signed Tag
|
||||||
@ -66,7 +69,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.18.5'
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Set env
|
- name: Set env
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
@ -109,7 +112,6 @@ jobs:
|
|||||||
find ./releases/ -maxdepth 1 -type l | xargs rm
|
find ./releases/ -maxdepth 1 -type l | xargs rm
|
||||||
working-directory: src/github.com/containerd/containerd
|
working-directory: src/github.com/containerd/containerd
|
||||||
env:
|
env:
|
||||||
GO_VERSION: '1.18.5'
|
|
||||||
PLATFORM: ${{ matrix.platform }}
|
PLATFORM: ${{ matrix.platform }}
|
||||||
- name: Save Artifacts
|
- name: Save Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user