forked from openresty/openresty-packaging
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (50 loc) · 1.34 KB
/
package.yaml
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
name: Package OpenResty
on:
workflow_dispatch:
inputs:
alpine-version:
description: Alpine Linux release version to build for
default: '3.20'
required: false
type: string
workflow_call:
inputs:
alpine-version:
description: Alpine Linux release version to build for
default: '3.20'
required: false
type: string
release-version:
description: Rancher Desktop OpenResty release tag
required: false
type: string
permissions: {}
jobs:
package:
strategy:
matrix:
include:
- arch: amd64
- arch: arm64
runs-on: ubuntu-latest
steps:
- uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.arch }}
- uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: >-
docker buildx build
--platform=linux/${{ matrix.arch }}
--output=type=local,dest=.
--file=.github/workflows/package.Dockerfile
--build-arg=RELEASE_VERSION=${{ inputs.release-version }}
--build-arg=ALPINE_VERSION=${{ inputs.alpine-version }}
.
- uses: actions/upload-artifact@v4
with:
name: openresty-${{ matrix.arch }}.tar
path: openresty-*.tar
if-no-files-found: error