runner-images/.gitea/workflows/push.yaml
张泊明518370910136 7ba3c68e99
Some checks failed
push / build (push) Failing after 52s
ci: use local checkout
2025-03-18 16:22:53 -04:00

29 lines
876 B
YAML

---
name: push
on:
push:
branches:
- golang-ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@focs
- name: Determine build command
id: build_command
run: |
if echo "${{ github.event.head_commit.message }}" | grep -q "force build"; then
echo "build_command=make force-build" >> $GITHUB_ENV
else
echo "build_command=make build" >> $GITHUB_ENV
fi
- name: Build
run: ${{ env.build_command }}
- name: Check images
run: docker images
- name: Remove dangling images
run: docker image prune -f
- name: Push
run: make push