build: add release package for ubuntu 24.04 #594
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Project Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
# | |
# Project checker | |
# | |
# based on https://github.com/containerd/project-checks/blob/main/action.yml | |
project: | |
name: Project Checks | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- uses: actions/checkout@v3 | |
with: | |
path: src/github.com/containerd/overlaybd | |
fetch-depth: 100 | |
- name: set env | |
shell: bash | |
run: | | |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV | |
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
shell: bash | |
env: | |
GO111MODULE: on | |
run: | | |
echo "::group::🚧 Get dependencies" | |
go install -v github.com/vbatts/git-validation@latest | |
go install -v github.com/containerd/ltag@latest | |
echo "::endgroup::" | |
- name: DCO Checks | |
shell: bash | |
working-directory: src/github.com/containerd/overlaybd | |
env: | |
GITHUB_COMMIT_URL: ${{ github.event.pull_request.commits_url }} | |
REPO_ACCESS_TOKEN: "" | |
DCO_VERBOSITY: "-v" | |
DCO_RANGE: "" | |
run: | | |
echo "::group::👮 DCO checks" | |
set -x | |
if [[ ! -z "${REPO_ACCESS_TOKEN}" ]]; then | |
HEADERS=(-H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${REPO_ACCESS_TOKEN}") | |
else | |
HEADERS=(-H "Accept: application/vnd.github+json") | |
fi | |
if [ -z "${GITHUB_COMMIT_URL}" ]; then | |
DCO_RANGE=$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH}) | |
else | |
DCO_RANGE=$(curl "${HEADERS[@]}" ${GITHUB_COMMIT_URL} | jq -r '.[0].parents[0].sha + "..HEAD"') | |
fi | |
git-validation ${DCO_VERBOSITY} ${DCO_RANGE} -run DCO,short-subject,dangling-whitespace | |
echo "::endgroup::" | |
- name: Validate file headers | |
shell: bash | |
working-directory: src/github.com/containerd/overlaybd | |
run: | | |
echo "::group::📚 File headers" | |
ltag -t "script/validate/template" --excludes "vendor contrib" --check -v | |
echo "::endgroup::" |