-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (54 loc) · 1.55 KB
/
build-openresty.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
51
52
53
54
55
name: BuildOpenresty
# only trigger it manually
on:
workflow_dispatch:
inputs:
do_build:
type: boolean
description: build image
required: true
do_release:
type: boolean
description: sync image to dockerhub
required: true
push:
branches:
- feat/ACP-37252-ghci
paths-ignore:
- 'docs/**'
- '**.md'
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build-openresty:
name: Build Openresty
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- uses: docker/setup-buildx-action@v3
- name: build
env:
RELEASE_ME: "${{ github.event.inputs.do_release == 'true' }}"
run: |
set -x
./scripts/run-like-github-actions.sh build-nginx
- name: Upload alb-nginx images to artifact
uses: actions/upload-artifact@v3
with:
name: alb-nginx
path: alb-nginx.tar
- name: release
if: ${{ inputs.do_release }}
env:
RELEASE_ME: "${{ github.event.inputs.do_release == 'true' }}"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_CLI_EXPERIMENTAL: enabled
run: |
./scripts/run-like-github-actions.sh release-nginx