github.com/go-graphite/carbonapi@v0.17.0/.github/workflows/packages-debian-bullseye.yaml (about)

     1  name: Build packages for Debian Bullseye
     2  
     3  on:
     4    workflow_run:
     5      workflows: ["Tests"]
     6      branches: [ main ]
     7      types:
     8        - completed
     9    push:
    10      tags:
    11        - v.*
    12  jobs:
    13    build-packages-debian-bullseye:
    14      name: Build packages for Debian Bullseye
    15      if: ${{ github.event.workflow_run.conclusion == 'success' }}
    16      runs-on: ubuntu-latest
    17      strategy:
    18        matrix:
    19          go:
    20            - ^1
    21      steps:
    22      - name: Set up Go
    23        uses: actions/setup-go@v5
    24        with:
    25          go-version: ${{ matrix.go }}
    26      - name: Set up Ruby for package_cloud uploader to work
    27        uses: ruby/setup-ruby@v1
    28        with:
    29          ruby-version: '2.7' # Version range or exact version of a Ruby version to use, using semvers version range syntax.
    30      - name: Install packaging dependencies
    31        run: |
    32          sudo apt-get install libcairo2-dev mercurial pkg-config wget -y
    33          gem install package_cloud
    34      - name: Check out code into the Go module directory
    35        uses: actions/checkout@v4
    36        with:
    37          fetch-depth: 0
    38      - name: Set up QEMU
    39        uses: docker/setup-qemu-action@v3
    40      - name: Log in to GitHub Docker Registry
    41        uses: docker/login-action@v3
    42        with:
    43          registry: ghcr.io
    44          username: ${{ github.actor }}
    45          password: ${{ secrets.GITHUB_TOKEN }}
    46      - name: Create packages
    47        env:
    48          BUILD_PACKAGES: true
    49          PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
    50        run: |
    51          wget "https://raw.githubusercontent.com/go-graphite/helper-scripts/main/build.sh" && chmod +x ./build.sh
    52          ./build.sh carbonapi "debian:bullseye"