Skip to content

Commit bae23ef

Browse files
committed
Fix: Build container image on release trigger
* tweak memory_stats.sh to fail on first error
1 parent c7aa018 commit bae23ef

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/docker-build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ permissions:
44
packages: write
55
actions: write
66
on:
7-
workflow_dispatch:
8-
push:
9-
branches:
10-
- '*'
11-
paths:
12-
- 'nginx-utils/**'
13-
- '.github/workflows/docker-build.yml'
7+
release:
8+
types: [created]
9+
10+
env:
11+
RELEASE_VERSION: ${{ github.event.release.tag_name }}
1412
jobs:
1513
build:
1614
runs-on: ubuntu-latest

nginx-utils/memory_stats.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
2+
set -e
33
echo ""
44
echo " **** Output of memory.stat ****"
55
cat /sys/fs/cgroup/memory.stat

0 commit comments

Comments
 (0)