Skip to content

Bump go.opentelemetry.io/otel from 1.39.0 to 1.41.0 #38

Bump go.opentelemetry.io/otel from 1.39.0 to 1.41.0

Bump go.opentelemetry.io/otel from 1.39.0 to 1.41.0 #38

Workflow file for this run

name: build-qdrant
on:
schedule:
- cron: '0 0 */14 * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: firecracker
permissions:

Check failure on line 16 in .github/workflows/build-qdrant.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-qdrant.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
packages: write
strategy:
fail-fast: false
matrix:
tag: [1.16.2, 1.16.1, 1.16.0, 1.15.5, 1.15.4]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '1.25'
- name: Generate LGTM App token
id: lgtm-app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
with:
permission-contents: write
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
private-key: ${{ secrets.LGTM_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Prepare git
env:
LGTM_APP_TOKEN: ${{ steps.lgtm-app-token.outputs.token }}
run: |
set -x
git config --global user.name "1gtm-app[bot]"
git config --global user.email "3686661+1gtm-app[bot]@users.noreply.github.com"
git config --global \
url."https://x-access-token:${LGTM_APP_TOKEN}@github.com".insteadOf \
"https://github.com"
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
with:
cache-image: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
with:
platforms: linux/amd64,linux/arm64
- uses: imjasonh/setup-crane@5146f708a817ea23476677995bf2133943b9be0b # v0.1
- name: Install trivy
run: |
sudo apt-get install -y --no-install-recommends wget apt-transport-https gnupg lsb-release
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
sudo apt-get update
sudo apt-get install -y --no-install-recommends trivy
- name: Log in to the GitHub Container registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Build from source using Qdrant's Dockerfile with USER_ID=1000 for non-root
- name: Build
run: |
go run cmd/build-image/main.go --name=qdrant --tag=${{ matrix.tag }}
report:
name: Report
runs-on: firecracker
needs: build
if: always()
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: '1.25'
- name: Generate LGTM App token
id: lgtm-app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3
with:
permission-contents: write
client-id: ${{ secrets.LGTM_APP_CLIENT_ID }}
private-key: ${{ secrets.LGTM_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Prepare git
env:
LGTM_APP_TOKEN: ${{ steps.lgtm-app-token.outputs.token }}
run: |
set -x
git config --global user.name "1gtm-app[bot]"
git config --global user.email "3686661+1gtm-app[bot]@users.noreply.github.com"
git config --global \
url."https://x-access-token:${LGTM_APP_TOKEN}@github.com".insteadOf \
"https://github.com"
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
with:
platforms: linux/amd64,linux/arm64
- name: Log in to the GitHub Container registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install trivy
run: |
sudo apt-get install -y --no-install-recommends wget apt-transport-https gnupg lsb-release
wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
sudo apt-get update
sudo apt-get install -y --no-install-recommends trivy
- name: Generate Report
env:
SMTP_ADDRESS: ${{ secrets.SMTP_ADDRESS }}
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
run: |
go run cmd/mail-report/main.go --name=qdrant
- name: Update repo
run: |
git add --all
if [[ $(git status --porcelain) ]]; then
git commit -s -a -m "update qdrant images $(date --rfc-3339=date)"
git fetch origin
git pull --rebase -s ours origin master
git push origin HEAD
fi