-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michal Saloň
committed
Nov 11, 2024
0 parents
commit 3f295c5
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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: | ||
# docker run -u0 --rm -it -v $(pwd):/dist ghcr.io/imgproxy/imgproxy:latest-amd64 imgproxy-build-package deb /dist | ||
- name: imgproxy | ||
os: ubuntu-latest | ||
useDocker: true | ||
# using specific version, since the imgproxy builder always names the resulting file after current version | ||
image: ghcr.io/imgproxy/imgproxy:v3.26.1-amd64 | ||
options: -u0 -v $(pwd)/out/:/dist | ||
cmd: imgproxy-build-package deb /dist | ||
file: imgproxy-3.26.1.amd64.dev | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build docker | ||
if: ${{ matrix.useDocker }} | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: ${{ matrix.image }} | ||
options: ${{ matrix.options }} | ||
run: ${{ matrix.cmd }} | ||
|
||
- name: Upload to Release Action | ||
uses: Shopify/upload-to-release@c77c9b3e5d288adaef98a7007bf92340ec6ce03b | ||
with: | ||
name: ${{ matrix.file }} | ||
path: ./out/${{ matrix.file }} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
content-type: application/octet-stream |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea/ |
Empty file.