Merge pull request #4292 from cpuguy83/add_hcsshim_to_release_tar
Add windows hcsshim to release pipeline
This commit is contained in:
commit
8f959d569a
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@ -79,12 +79,26 @@ jobs:
|
|||||||
repository: containerd/containerd
|
repository: containerd/containerd
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
path: src/github.com/containerd/containerd
|
path: src/github.com/containerd/containerd
|
||||||
|
- name: Checkout Microsoft/hcsshim
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: Microsoft/hcsshim
|
||||||
|
path: src/github.com/Microsoft/hcsshim
|
||||||
|
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y btrfs-tools libseccomp-dev
|
sudo apt-get install -y btrfs-tools libseccomp-dev
|
||||||
|
- name: Prepare hcsshim source
|
||||||
|
if: startsWith(matrix.os, 'windows')
|
||||||
|
shell: bash
|
||||||
|
working-directory: src/github.com/containerd/containerd
|
||||||
|
run: |
|
||||||
|
SHIM_COMMIT=$(grep Microsoft/hcsshim vendor.conf | awk '{print $2}')
|
||||||
|
cd ../../Microsoft/hcsshim
|
||||||
|
git fetch --tags origin "${SHIM_COMMIT}"
|
||||||
|
git checkout "${SHIM_COMMIT}"
|
||||||
- name: Make
|
- name: Make
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
@ -95,6 +109,11 @@ jobs:
|
|||||||
make binaries
|
make binaries
|
||||||
[[ "${MOS}" =~ "windows" ]] && {
|
[[ "${MOS}" =~ "windows" ]] && {
|
||||||
OS=windows
|
OS=windows
|
||||||
|
(
|
||||||
|
bindir="$(pwd)/bin"
|
||||||
|
cd ../../Microsoft/hcsshim
|
||||||
|
GO111MODULE=on go build -mod=vendor -o "${bindir}/containerd-shim-runhcs-v1.exe" ./cmd/containerd-shim-runhcs-v1
|
||||||
|
)
|
||||||
}
|
}
|
||||||
TARFILE="containerd-${RELEASE_VER#v}-${OS}-amd64.tar.gz"
|
TARFILE="containerd-${RELEASE_VER#v}-${OS}-amd64.tar.gz"
|
||||||
tar czf ${TARFILE} bin/
|
tar czf ${TARFILE} bin/
|
||||||
|
Loading…
Reference in New Issue
Block a user