22 lines
592 B
YAML
22 lines
592 B
YAML
name: Build Production Image
|
|
|
|
on:
|
|
pull_request_review:
|
|
types: [submitted]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Production Image
|
|
if: github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'main'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
github-server-url: http://gitea.lab
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Verify Docker CLI
|
|
run: docker version
|
|
|
|
- name: Build all-in-one image
|
|
run: docker build -t condado-newsletter:latest -f Dockerfile.allinone . |