imgproxy-v3.26.1 #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload build asset | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
build: | |
name: Upload build asset for ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# TODO: run specific jobs only for specific tags while re-using the steps | |
include: | |
- name: imgproxy | |
os: ubuntu-latest | |
useDocker: true | |
image: ghcr.io/imgproxy/imgproxy:latest-amd64 | |
# can not use ${{ github.workspace }} in matrix context, so path has to be hardcoded | |
options: -u0 -v /home/runner/work/deb-packages/deb-packages/out:/dist | |
cmd: /bin/bash -c "imgproxy-build-package deb /dist && mv /dist/imgproxy-*.amd64.deb /dist/imgproxy.amd64.deb" | |
file: imgproxy.amd64.deb | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build docker | |
if: ${{ matrix.useDocker }} | |
run: /usr/bin/docker run --rm --workdir /github/workspace -v ${{ github.workspace }}:/github/workspace ${{ matrix.options }} ${{ matrix.image }} ${{ matrix.cmd }} | |
- name: Upload to Release Action | |
uses: Shopify/upload-to-release@c77c9b3e5d288adaef98a7007bf92340ec6ce03b | |
with: | |
name: ${{ matrix.file }} | |
path: ${{ github.workspace }}/out/${{ matrix.file }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
content-type: application/octet-stream |