Run pull request validation once through native CI

This commit is contained in:
2026-09-11 08:37:24 +00:00
parent 67cc71b05c
commit d1eb5f05af
+9 -7
View File
@@ -3,15 +3,17 @@ name: Build and Push Container
on:
push:
branches:
- master
- main
- master
tags:
- v*
workflow_dispatch:
- v*
workflow_dispatch: null
pull_request:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
runs-on: butler-ci
env:
REGISTRY: gitea.wayfinderak.com
IMAGE_NAME: gitea.wayfinderak.com/wayfinderak/geeksbot
@@ -77,7 +79,7 @@ jobs:
run: go test ./...
- name: Log in to Gitea Container Registry
if: ${{ steps.delivery.outputs.run == 'true' }}
if: ${{ (steps.delivery.outputs.run == 'true') && github.event_name != 'pull_request' }}
shell: bash
run: |
set -euo pipefail
@@ -139,7 +141,7 @@ jobs:
docker build "${build_args[@]}" .
- name: Push image
if: ${{ steps.delivery.outputs.run == 'true' }}
if: ${{ (steps.delivery.outputs.run == 'true') && github.event_name != 'pull_request' }}
shell: bash
run: |
set -euo pipefail