|
6 | 6 | - v*-pyroscope |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - release-linux-profiler: |
| 9 | + release-linux-profiler-x86_64: |
10 | 10 | runs-on: ubuntu-latest |
11 | 11 | env: |
12 | 12 | DOCKER_BUILDKIT: 1 |
| 13 | + ARCH: x86_64 |
| 14 | + LIBC: ${{ matrix.name }} |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + name: ['glibc', 'musl'] |
| 18 | + steps: |
| 19 | + - name: Checkout |
| 20 | + uses: actions/checkout@v2 |
| 21 | + with: |
| 22 | + submodules: 'true' |
| 23 | + - uses: docker/login-action@v2 |
| 24 | + name: Login to Docker Hub |
| 25 | + with: |
| 26 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 27 | + password: ${{ secrets.DOCKERHUB_PASSWORD }} |
| 28 | + - run: make docker/build |
| 29 | + - run: make docker/push |
| 30 | + - run: make docker/archive |
| 31 | + - name: Release |
| 32 | + uses: softprops/action-gh-release@v1 |
| 33 | + with: |
| 34 | + files: ./*.tar.gz |
| 35 | + release-linux-profiler-aarch64: |
| 36 | + runs-on: [self-hosted, Linux, ARM64] |
| 37 | + env: |
| 38 | + DOCKER_BUILDKIT: 1 |
| 39 | + ARCH: aarch64 |
| 40 | + LIBC: ${{ matrix.name }} |
13 | 41 | strategy: |
14 | 42 | matrix: |
15 | | - include: |
16 | | - - name: glibc |
17 | | - dockerfile: Pyroscope.Dockerfile |
18 | | - - name: musl |
19 | | - dockerfile: Pyroscope.musl.Dockerfile |
| 43 | + name: ['glibc', 'musl'] |
20 | 44 | steps: |
21 | 45 | - name: Checkout |
22 | 46 | uses: actions/checkout@v2 |
23 | 47 | with: |
24 | 48 | submodules: 'true' |
25 | | - - name: Set env |
26 | | - run: | |
27 | | - echo "RELEASE_VERSION=$(echo $GITHUB_REF | grep -oP '(?<=refs/tags/v).*(?=-pyroscope)')" >> $GITHUB_ENV |
28 | 49 | - uses: docker/login-action@v2 |
29 | 50 | name: Login to Docker Hub |
30 | 51 | with: |
31 | 52 | username: ${{ secrets.DOCKERHUB_USERNAME }} |
32 | 53 | password: ${{ secrets.DOCKERHUB_PASSWORD }} |
33 | | - - name: Build in Docker & push |
34 | | - run: > |
35 | | - docker buildx build |
36 | | - -t pyroscope/pyroscope-dotnet:${RELEASE_VERSION}-${{ matrix.name }} |
37 | | - -t pyroscope/pyroscope-dotnet:latest-${{ matrix.name }} |
38 | | - --push |
39 | | - -f ${{ matrix.dockerfile }} |
40 | | - . |
41 | | - - name: Create tar archive |
42 | | - run: docker build -f ${{ matrix.dockerfile }} -o out.${{ matrix.name }} . && tar -czvf pyroscope.${{ matrix.name }}.tar.gz -C out.${{ matrix.name }} . |
| 54 | + - run: make docker/build |
| 55 | + - run: make docker/push |
| 56 | + - run: make docker/archive |
43 | 57 | - name: Release |
44 | 58 | uses: softprops/action-gh-release@v1 |
45 | 59 | with: |
46 | | - files: ./pyroscope.${{ matrix.name }}.tar.gz |
| 60 | + files: ./*.tar.gz |
| 61 | + release-linux-profiler: |
| 62 | + needs: ['release-linux-profiler-x86_64', 'release-linux-profiler-aarch64'] |
| 63 | + runs-on: ubuntu-latest |
| 64 | + env: |
| 65 | + DOCKER_BUILDKIT: 1 |
| 66 | + LIBC: ${{ matrix.name }} |
| 67 | + strategy: |
| 68 | + matrix: |
| 69 | + name: ['glibc', 'musl'] |
| 70 | + steps: |
| 71 | + - name: Checkout |
| 72 | + uses: actions/checkout@v2 |
| 73 | + with: |
| 74 | + submodules: 'true' |
| 75 | + - uses: docker/login-action@v2 |
| 76 | + name: Login to Docker Hub |
| 77 | + with: |
| 78 | + username: ${{ secrets.DOCKERHUB_USERNAME }} |
| 79 | + password: ${{ secrets.DOCKERHUB_PASSWORD }} |
| 80 | + - run: make docker/manifest |
0 commit comments