Skip to content

windows-containerd-nightly #1324

windows-containerd-nightly

windows-containerd-nightly #1324

name: windows-containerd-nightly
on:
push:
branches: [ master ]
schedule:
- cron: '45 0 * * *' # Every day at 00:45 UTC
workflow_dispatch:
permissions:
contents: write # Allow the action to update the `container-nightly` GH release
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.21.3
- name: Create drop folder
run: mkdir -p $GITHUB_WORKSPACE/output/bin
- name: Build hcsshim
env:
GOOS: windows
GOARCH: amd64
run: |
git clone https://github.com/Microsoft/hcsshim
cd hcsshim
go build -o $GITHUB_WORKSPACE/output/bin/containerd-shim-runhcs-v1.exe ./cmd/containerd-shim-runhcs-v1
git rev-parse HEAD | tee $GITHUB_WORKSPACE/output/bin/hcsshim-revision.txt
- name: Build containerd
env:
GOOS: windows
GOARCH: amd64
VERSION: v2.0.0+unknown
run: |
git clone https://github.com/containerd/containerd.git
cd containerd
make binaries
cp ./bin/containerd.exe $GITHUB_WORKSPACE/output/bin
cp ./bin/ctr.exe $GITHUB_WORKSPACE/output/bin
git rev-parse HEAD | tee $GITHUB_WORKSPACE/output/bin/containerd-revision.txt
- name: make windows-containerd zip
run: |
cd $GITHUB_WORKSPACE/output
tar cvf windows-containerd.tar.gz bin
# sometimes eine/tip@master fails to upload release artifacts and this leaves
# a stale tmp file on the release which causes future runs of this workflow to fail.
- name: delete tmp.* release artifacts
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: windows-containerd-nightly
fail-if-no-assets: false # do not fail if temp.windows-contaienrd.tar.gz does not exist
assets: tmp.windows-containerd.tar.gz
- uses: eine/tip@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: windows-containerd-nightly
files: |
./output/windows-containerd.tar.gz