From e166644831edfdc47eb36140725168c5edec2615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Salo=C5=88?= Date: Tue, 12 Nov 2024 00:07:24 +0100 Subject: [PATCH] initial commit --- .editorconfig | 9 +++++++ .github/workflows/tag.yml | 49 +++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + out/.gitkeep | 0 4 files changed, 59 insertions(+) create mode 100644 .editorconfig create mode 100644 .github/workflows/tag.yml create mode 100644 .gitignore create mode 100644 out/.gitkeep diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..0385e34 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 0000000..38ee9ad --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,49 @@ +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 + image: ghcr.io/imgproxy/imgproxy:latest-amd64 + options: -u0 -v ${{ github.workspace }}/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 }} + uses: addnab/docker-run-action@v3 + with: + image: ${{ matrix.image }} + options: ${{ matrix.options }} + run: ${{ matrix.cmd }} + run: | + ls -lah . + 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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/out/.gitkeep b/out/.gitkeep new file mode 100644 index 0000000..e69de29