otel-demo #56
@@ -0,0 +1,41 @@
|
|||||||
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY_URL: "git.cleverthis.com"
|
||||||
|
REPOSITORY: "clevermicro/amq-adapter-python"
|
||||||
|
DOCKER_HOST: "tcp://dind:2375"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: general
|
||||||
|
services:
|
||||||
|
dind:
|
||||||
|
image: docker:dind
|
||||||
|
cmd:
|
||||||
|
- dockerd
|
||||||
|
- -H
|
||||||
|
- tcp://0.0.0.0:2375
|
||||||
|
- --tls=false
|
||||||
|
container:
|
||||||
|
image: "ghcr.io/catthehacker/ubuntu:js-22.04"
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: docker login
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ env.REGISTRY_URL }}
|
||||||
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: docker build & push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
no-cache: true
|
||||||
|
push: true
|
||||||
|
tags: ${{ env.REGISTRY_URL }}/${{ env.REPOSITORY }}:latest
|
||||||
+7
-7
@@ -20,13 +20,13 @@ RUN pip install --no-cache-dir \
|
|||||||
uvicorn[standard]==0.29.0 \
|
uvicorn[standard]==0.29.0 \
|
||||||
python-multipart==0.0.9 \
|
python-multipart==0.0.9 \
|
||||||
httpx==0.27.0 \
|
httpx==0.27.0 \
|
||||||
opentelemetry-api==1.25.0 \
|
opentelemetry-api==1.34.1 \
|
||||||
opentelemetry-sdk==1.25.0 \
|
opentelemetry-sdk==1.34.1 \
|
||||||
opentelemetry-exporter-otlp-proto-grpc==1.25.0 \
|
opentelemetry-exporter-otlp-proto-grpc==1.34.1 \
|
||||||
opentelemetry-exporter-prometheus==1.25.0 \
|
opentelemetry-exporter-prometheus==0.55b1 \
|
||||||
opentelemetry-instrumentation-fastapi==0.46b0 \
|
opentelemetry-instrumentation-fastapi==0.55b1 \
|
||||||
opentelemetry-instrumentation-httpx==0.46b0 \
|
opentelemetry-instrumentation-httpx==0.55b1 \
|
||||||
protobuf==4.25.3
|
protobuf==5.28.3
|
||||||
|
|
||||||
# Copy the application code
|
# Copy the application code
|
||||||
COPY ./amqp ./amqp
|
COPY ./amqp ./amqp
|
||||||
|
|||||||
Reference in New Issue
Block a user