Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/alauda-auto-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ jobs:

PREFIX="${BRANCH_NAME%%-*}" # alauda
BASE_VERSION="${BRANCH_NAME#${PREFIX}-}" # v0.62.1

VERSION_NO_V="${BASE_VERSION#v}" # 0.62.1
MAJOR=$(echo "$VERSION_NO_V" | cut -d. -f1)
MINOR=$(echo "$VERSION_NO_V" | cut -d. -f2)
PATCH=$(echo "$VERSION_NO_V" | cut -d. -f3)

echo "MAJOR: $MAJOR, MINOR: $MINOR, PATCH: $PATCH"

# PATCH + 1
NEXT_PATCH=$((PATCH + 1))
echo "NEXT_PATCH=$NEXT_PATCH"

NEXT_VERSION="v${MAJOR}.${MINOR}.${NEXT_PATCH}" # v0.62.2
echo "NEXT_VERSION=$NEXT_VERSION"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/chatops_retest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Rerun Failed Actions
permissions:
contents: read

on:
on: # yamllint disable-line rule:truthy
repository_dispatch:
types: [retest-command]

Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ci

on: [pull_request] # yamllint disable-line rule:truthy
on: [pull_request] # yamllint disable-line rule:truthy

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull-request.number || github.ref }}
Expand All @@ -12,15 +12,15 @@ defaults:

permissions:
contents: read
checks: write # Used to annotate code in the PR
checks: write # Used to annotate code in the PR

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- name: build
Expand All @@ -31,8 +31,8 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- name: gofmt
Expand All @@ -43,14 +43,14 @@ jobs:
fi
echo "$gofmt_out"
- name: golangci-lint
uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9.0.0
uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9.0.0
with:
version: v2.1.6
version: latest
only-new-issues: true
args: --timeout=10m
- name: yamllint
run: |
apt update && apt install -y yamllint
sudo apt update && sudo apt install -y yamllint
yamllint -c .yamllint $(find . -path ./vendor -prune -o -type f -regex ".*y[a]ml" -print | tr '\n' ' ')
- name: check-license
run: |
Expand All @@ -61,8 +61,8 @@ jobs:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- name: build
Expand All @@ -73,21 +73,21 @@ jobs:
name: Check generated code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- name: generated
run: |
go install github.com/google/go-licenses@v1.0.0 # Not sure why it is needed here
go install github.com/google/go-licenses@v1.0.0 # Not sure why it is needed here
./hack/verify-codegen.sh
multi-arch-build:
needs: [build]
name: Multi-arch build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version-file: "go.mod"
- name: Free disk space
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
KO_DOCKER_REPO: registry.local:5000/tekton
CLUSTER_DOMAIN: c${{ github.run_id }}.local
ARTIFACTS: ${{ github.workspace }}/artifacts
GOTOOLCHAIN: auto

steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand All @@ -52,6 +53,8 @@ jobs:
echo "${GOPATH}/bin" >> "$GITHUB_PATH"

- name: Run tests
env:
GOTOOLCHAIN: auto
run: |
./hack/setup-kind.sh \
--registry-url $(echo ${KO_DOCKER_REPO} | cut -d'/' -f 1) \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-alauda.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Release Alauda

on:
on: # yamllint disable-line rule:truthy
push:
tags:
- "v*-alauda-*"
workflow_dispatch:
workflow_dispatch: {}

permissions:
contents: write # create releases
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-release-alauda.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release Alauda

on:
workflow_call:
on: # yamllint disable-line rule:truthy
workflow_call: {}

permissions:
contents: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scan-alauda.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Scan vulnerabilities for Alauda
on:
on: # yamllint disable-line rule:truthy
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
workflow_dispatch: {}

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-alauda.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Go Test For Alauda

on:
on: # yamllint disable-line rule:truthy
push:
branches: [ alauda-v* ]
branches: [alauda-v*]
pull_request:
branches: [ alauda-v* ]
branches: [alauda-v*]

jobs:
test:
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ vendor:
@$(GO) mod vendor

.PHONY: cross
cross: amd64 386 arm arm64 s390x ppc64le ## build cross platform binaries
cross: ## build cross platform binaries
# Linux-only build matrix for CI; other architectures live under amd64/arm/arm64/386/s390x/ppc64le targets.
GOOS=linux GOARCH=amd64 go build -mod=vendor $(LDFLAGS) -o bin/tkn-linux-amd64 ./cmd/tkn
GOOS=linux GOARCH=arm64 go build -mod=vendor $(LDFLAGS) -o bin/tkn-linux-arm64 ./cmd/tkn

.PHONY: amd64
amd64:
Expand All @@ -76,6 +79,7 @@ arm64:
GOOS=linux GOARCH=arm64 go build -mod=vendor $(LDFLAGS) -o bin/tkn-linux-arm64 ./cmd/tkn
GOOS=darwin GOARCH=arm64 go build -mod=vendor $(LDFLAGS) -o bin/tkn-darwin-arm64 ./cmd/tkn


.PHONY: s390x
s390x:
GOOS=linux GOARCH=s390x go build -mod=vendor $(LDFLAGS) -o bin/tkn-linux-s390x ./cmd/tkn
Expand Down
Loading
Loading