-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.85 KB
/
tag.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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:
include:
- name: imgproxy
os: ubuntu-latest
useDocker: true
# command: /usr/bin/docker run -u0 --rm -v ${{ github.workspace }}/out:/dist ghcr.io/imgproxy/imgproxy:latest-amd64 imgproxy-build-package deb /dist
image: ghcr.io/imgproxy/imgproxy:latest-amd64
# can not use ${{ github.workspace }} in matrix context, so path has to be, sadly, hardcoded
options: -u0 -v /home/runner/work/deb-packages/deb-packages/out:/dist
cmd: |
imgproxy-build-package deb /dist
ls -lah /dist
mv /dist/imgproxy-*.amd64.deb /dist/imgproxy.amd64.deb
ls -lah /dist
file: imgproxy.amd64.deb
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build docker
if: ${{ matrix.useDocker }}
run: /usr/bin/docker run --workdir /github/workspace --rm ${{ matrix.options }} ${{ matrix.image }} ${{ matrix.cmd }}
# uses: addnab/docker-run-action@v3
# with:
# image: ${{ matrix.image }}
# options: ${{ matrix.options }}
# run: ${{ matrix.cmd }}
- name: Check output
run: |
ls -lah .
ls -lah ./out/
ls -lah ${{ github.workspace }}
ls -lah ${{ github.workspace }}/out/
- 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