Skip to content

build-alb-nginx-base #19

build-alb-nginx-base

build-alb-nginx-base #19

name: BuildOpenresty
# only trigger it manually
on:
workflow_dispatch:
inputs:
do_release:
type: boolean
description: sync alb-nginx-base image to dockerhub
required: true
default: false
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
# run: |
# ./scripts/run-like-github-actions.sh build-nginx
# - name: Upload alb-nginx-base images to artifact
# uses: actions/upload-artifact@v3
# with:
# name: alb-nginx-base
# path: alb-nginx-base.tar
- name: 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: |
env
exit
./scripts/run-like-github-actions.sh release-nginx