-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
6,149 additions
and
7,082 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This action requires that any PR targeting the main branch should touch at | ||
# least one CHANGELOG file. If a CHANGELOG entry is not required, or if | ||
# performing maintenance on the Changelog, add either \"[chore]\" to the title of | ||
# the pull request or add the \"Skip Changelog\" label to disable this action. | ||
|
||
name: changelog | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled, unlabeled] | ||
branches: | ||
- main | ||
jobs: | ||
changelog: | ||
runs-on: ubuntu-latest | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies') && !contains(github.event.pull_request.labels.*.name, 'Skip Changelog') && !contains(github.event.pull_request.title, '[chore]')}} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check for CHANGELOG changes | ||
run: | | ||
# Only the latest commit of the feature branch is available | ||
# automatically. To diff with the base branch, we need to | ||
# fetch that too (and we only need its latest commit). | ||
git fetch origin ${{ github.base_ref }} --depth=1 | ||
if [[ $(git diff --name-only FETCH_HEAD | grep CHANGELOG) ]] | ||
then | ||
echo "A CHANGELOG was modified. Looks good!" | ||
else | ||
echo "No CHANGELOG was modified." | ||
echo "Please add a CHANGELOG entry, or add the \"Skip Changelog\" label if not required." | ||
false | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: lycheeverse/lychee-action@v1.7.0 | ||
- uses: lycheeverse/lychee-action@v1.8.0 | ||
with: | ||
args: >- | ||
-v -n "*.md" "**/*.md" | ||
|
@@ -45,8 +45,13 @@ jobs: | |
with: | ||
path: ~/.tools | ||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('./internal/tools/**') }} | ||
- name: Install build dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get install -y clang llvm libbpf-dev | ||
- name: Run linters | ||
run: make license-header-check dependabot-check | ||
run: make license-header-check dependabot-check go-mod-tidy golangci-lint | ||
- name: Check clean repository | ||
run: make check-clean-work-tree | ||
verify-licenses: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
workflow_dispatch: | ||
|
||
schedule: | ||
- cron: '0 0 * * 0' | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
updateOffsets: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,33 +9,42 @@ jobs: | |
permissions: | ||
contents: read | ||
packages: write | ||
|
||
env: | ||
IMAGE_NAME: autoinstrumentation-go | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2.1.0 | ||
uses: docker/login-action@v2.2.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2.1.0 | ||
uses: docker/setup-qemu-action@v2.2.0 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2.5.0 | ||
uses: docker/setup-buildx-action@v2.9.1 | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4.4.0 | ||
uses: docker/metadata-action@v4.6.0 | ||
with: | ||
images: ghcr.io/${{ github.repository }}/autoinstrumentation-go | ||
images: | | ||
otel/${{ env.IMAGE_NAME }} | ||
ghcr.io/${{ github.repository }}/${{ env.IMAGE_NAME }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v4.0.0 | ||
uses: docker/build-push-action@v4.1.1 | ||
with: | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64 | ||
platforms: linux/amd64,linux/arm64 |
This file contains 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
Oops, something went wrong.