Skip to content

Commit

Permalink
Merge branch 'release-0.8.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
William Lam committed Feb 23, 2024
2 parents 45a8c50 + c66afd3 commit 82fc0a5
Show file tree
Hide file tree
Showing 235 changed files with 5,817 additions and 3,616 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-wip-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check WIP in PR Title
uses: embano1/wip@d10268b325aea84ff49ff3f0983c0ebc14976caf # v1
uses: embano1/wip@c25450f77ed02c20d00b76ee3b33ff43838739a2 # v2
12 changes: 6 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [main]
branches: [main,master]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
branches: [main,master]
schedule:
- cron: "34 21 * * 5"

Expand All @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
6 changes: 3 additions & 3 deletions .github/workflows/issue-greeting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 1

- name: Render template
id: template
uses: chuhlomin/render-template@204ce622bc2fd5c787ff5ca885ff19fb577e7a41
uses: chuhlomin/render-template@a473db625a96c98e519d188812dc22bcaf54ffba
with:
template: .github/comment-template.md
vars: |
author: ${{ github.actor }}
- name: Create comment
uses: peter-evans/create-or-update-comment@3383acd359705b10cb1eeef05c0e88c056ea4666
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
issue-number: ${{ github.event.issue.number }}
body: ${{ steps.template.outputs.result }}
49 changes: 20 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: 0
ref: "master"

- name: Set up Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: vmware-event-router/go.sum

- name: Setup ko
uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa

- name: Create CHANGELOG for Release
env:
Expand All @@ -44,9 +48,9 @@ jobs:
docker run --rm -v $PWD:/workdir ${IMAGE}@sha256:${IMAGE_SHA} -o vmware-event-router/RELEASE_CHANGELOG.md $(basename "${{ github.ref }}" )
- name: GoReleaser
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8
with:
args: release --rm-dist --release-notes RELEASE_CHANGELOG.md
args: release --clean --release-notes RELEASE_CHANGELOG.md
workdir: vmware-event-router
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -61,7 +65,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
# for changelog
fetch-depth: 0
Expand All @@ -85,7 +89,7 @@ jobs:
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50
with:
delete-branch: true
title: "Update CHANGELOG"
Expand All @@ -99,40 +103,27 @@ jobs:
images:
needs: release
name: Create GCR image and release.yaml
name: Create Github Package image and release.yaml
timeout-minutes: 30
env:
KO_DOCKER_REPO: us.gcr.io/daisy-284300/veba # .../router@sha256:
PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
strategy:
matrix:
go-version: ["1.19"]
platform: ["ubuntu-latest"]
runs-on: ${{ matrix.platform }}

steps:
- name: Setup ko
uses: imjasonh/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: vmware-event-router/go.sum
id: go

- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3

- id: login_to_gcp
uses: google-github-actions/auth@ef5d53e30bbcd8d0836f4288f5e50ff3e086997d
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'

- name: Set up gcloud
uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587

- name: Configure Docker
run: gcloud auth configure-docker --quiet

- name: Setup ko
uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa

- name: Get short COMMIT and TAG
run: |
echo "KO_COMMIT=$(echo -n $GITHUB_SHA | cut -c -8)" >> $GITHUB_ENV
Expand All @@ -159,4 +150,4 @@ jobs:
upload_url: ${{ steps.get_release_url.outputs.upload_url }}
asset_path: ./vmware-event-router/release.yaml
asset_name: release.yaml
asset_content_type: text/plain
asset_content_type: text/plain
34 changes: 17 additions & 17 deletions .github/workflows/router-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,31 @@ jobs:
timeout-minutes: 20

steps:
- name: Check out code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: vmware-event-router/go.sum
id: go

- name: Check out code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3

- name: GoReleaser Snapshot
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8
with:
version: latest
args: release --rm-dist --snapshot
args: release --clean --snapshot
workdir: vmware-event-router
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Archive run artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: dist
path: |
vmware-event-router/dist/router_Linux_*.tar.gz
vmware-event-router/dist/router_linux_*.tar.gz
vmware-event-router/dist/checksums.txt
retention-days: 1

Expand All @@ -65,22 +66,21 @@ jobs:

runs-on: ${{ matrix.platform }}
timeout-minutes: 20
env:
KO_DOCKER_REPO: us.gcr.io/daisy-284300/veba # .../router@sha256:

steps:
- name: Check out code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Setup ko
uses: imjasonh/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa # v0.6
uses: ko-build/setup-ko@ace48d793556083a76f1e3e6068850c1f4a369aa

- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: vmware-event-router/go.sum
id: go

- name: Check out code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3

- name: Get short COMMIT and TAG
run: |
echo "KO_COMMIT=$(echo -n $GITHUB_SHA | cut -c -8)" >> $GITHUB_ENV
Expand All @@ -92,9 +92,9 @@ jobs:
ko resolve --platform=linux/arm64,linux/amd64 --push=false --tags ${KO_TAG},${KO_COMMIT},latest -BRf deploy/event-router-k8s.yaml > release.yaml
- name: Archive run artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: release
path: |
./vmware-event-router/release.yaml
retention-days: 1
retention-days: 1
Loading

0 comments on commit 82fc0a5

Please sign in to comment.