Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix Broken CI #2554

Closed
wants to merge 3 commits into from
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/templates-build-push-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Build and Push (Linux)
on:
workflow_call:
workflow_dispatch:
inputs:
image_name:
required: true
Expand All @@ -15,6 +16,8 @@ jobs:
linux:
name: Build & Push (Linux)
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -40,7 +43,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: tomkerkhove
username: hkfgo
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push preview image
Expand All @@ -49,5 +52,5 @@ jobs:
build-args: VERSION="${{ env.artifact_full_version }}"
context: ./src/
file: ./src/${{ inputs.project_name }}/Dockerfile.linux
tags: ${{ env.image_commit_uri }},${{ env.image_latest_uri }}
push: true
tags: ghcr.io/hkfgo/${{ env.image_commit_uri }},ghcr.io/hkfgo/${{ env.image_latest_uri }}
push: true
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ steps:
displayName: 'Show OpenTelemetry configuration'
- script: |
echo Mounting volumes: ${{ parameters.volumes }}
docker run -d -p 8888:8888 -p 8889:8889 --name ${{ parameters.containerName }} $(networkArgument) --volume ${{ parameters.volumes }} otel/opentelemetry-collector --config /etc/otel-collector-config.yaml
docker run -d -p 8888:8888 -p 8889:8889 --name ${{ parameters.containerName }} $(networkArgument) --volume ${{ parameters.volumes }} otel/opentelemetry-collector:0.103.1 --config /etc/otel-collector-config.yaml
sleep 10
docker logs ${{ parameters.containerName }}
displayName: Run OpenTelemetry Collector as ${{ parameters.containerName }} container
Expand Down
Loading