File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build OpenResty Image
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths :
7+ - ' Dockerfile'
8+ - ' .github/workflows/docker.yml'
9+ workflow_dispatch :
10+
11+ env :
12+ REGISTRY : ghcr.io
13+ IMAGE_NAME : ${{ github.repository_owner }}/openresty
14+
15+ jobs :
16+ build-and-push :
17+ runs-on : ubuntu-latest
18+ permissions :
19+ contents : read
20+ packages : write
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - name : Set up Docker Buildx
26+ uses : docker/setup-buildx-action@v3
27+
28+ - name : Log in to Container Registry
29+ uses : docker/login-action@v3
30+ with :
31+ registry : ${{ env.REGISTRY }}
32+ username : ${{ github.actor }}
33+ password : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - name : Extract metadata
36+ id : meta
37+ uses : docker/metadata-action@v5
38+ with :
39+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40+ tags : |
41+ type=raw,value=latest
42+ type=sha,prefix=
43+
44+ - name : Build and push
45+ uses : docker/build-push-action@v5
46+ with :
47+ context : .
48+ file : Dockerfile
49+ push : true
50+ tags : ${{ steps.meta.outputs.tags }}
51+ labels : ${{ steps.meta.outputs.labels }}
52+ cache-from : type=gha
53+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 1+ FROM openresty/openresty:alpine-fat
2+
3+ LABEL org.opencontainers.image.source=https://github.com/flatrun/openresty
4+
5+ RUN opm get ledgetech/lua-resty-http
You can’t perform that action at this time.
0 commit comments