Skip to content

Commit

Permalink
changing artifact uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanishan1001 committed Sep 19, 2024
1 parent 797d33b commit c7811d0
Showing 1 changed file with 12 additions and 58 deletions.
70 changes: 12 additions & 58 deletions .github/workflows/webserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,18 @@ jobs:
# run: |
# rm -rf /tmp/buildx-cache/apache_centos7
# mv /tmp/buildx-cache/apache_centos7-new /tmp/buildx-cache/apache_centos7
- name: copy artifacts
id: artifacts
run: |
cd instrumentation/otel-webserver-module
mkdir -p /tmp/apache_centos7/
docker cp apache_centos7_container:/otel-webserver-module/build/opentelemetry-webserver-sdk-x64-linux.tgz \
/tmp/apache_centos7/
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: opentelemetry-webserver-sdk-x64-linux.tgz
path: /tmp/apache_centos7/opentelemetry-webserver-sdk-x64-linux.tgz
# - name: copy artifacts
# id: artifacts
# run: |
# cd instrumentation/otel-webserver-module
# mkdir -p /tmp/apache_centos7/
# docker cp apache_centos7_container:/otel-webserver-module/build/opentelemetry-webserver-sdk-x64-linux.tgz \
# /tmp/apache_centos7/
# - name: upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: opentelemetry-webserver-sdk-x64-linux.tgz
# path: /tmp/apache_centos7/opentelemetry-webserver-sdk-x64-linux.tgz
# - name: run integrationtest
# run: |
# docker ps
Expand All @@ -125,52 +125,6 @@ jobs:
# ./gradlew :test:integration:integrationTests -i
# curl http://localhost:9411/api/v2/spans?serviceName=demoservice

# webserver-build-test-centos6:
# name: webserver-centos6-build
# runs-on: ubuntu-20.04
# steps:
# - name: checkout otel webserver
# uses: actions/checkout@v3
# - name: setup buildx
# id: buildx
# uses: docker/setup-buildx-action@master
# with:
# install: true
# - name: cache docker layers
# uses: actions/cache@v3
# with:
# path: /tmp/buildx-cache/
# key: apache-centos6-${{ github.sha }}
# restore-keys: |
# apache-centos6
# - name: setup docker image
# run: |
# cd instrumentation/otel-webserver-module
# docker buildx build -t apache_centos6 -f Dockerfile \
# --cache-from type=local,src=/tmp/buildx-cache/apache_centos6 \
# --cache-to type=local,dest=/tmp/buildx-cache/apache_centos6-new \
# --load .
# - name: build
# run: |
# docker run -idt --name apache_centos6_container apache_centos6 /bin/bash
# cd instrumentation/otel-webserver-module
# docker exec apache_centos6_container bash -c \
# 'cd /otel-webserver-module; rm -rf *;'
# docker cp . $(docker inspect --format="{{.Id}}" apache_centos6_container):/otel-webserver-module/
# docker exec apache_centos6_container bash -c \
# 'cd /otel-webserver-module; rm -rf build; \
# cp -r /dependencies /otel-webserver-module/; \
# cp -r /build-dependencies /otel-webserver-module/; \
# ./gradlew assembleWebServerModule'
# - name: unit test
# run: |
# docker exec apache_centos6_container bash -c \
# 'cd /otel-webserver-module; ./gradlew runUnitTest'
# - name: update cache
# run: |
# rm -rf /tmp/buildx-cache/apache_centos6
# mv /tmp/buildx-cache/apache_centos6-new /tmp/buildx-cache/apache_centos6


webserver-build-test-almalinux8:
name: webserver-almalinux8-build
Expand Down

0 comments on commit c7811d0

Please sign in to comment.