Skip to content

Commit a586b5c

Browse files
authored
Add GitHub Actions workflow for build and publish
This workflow builds and publishes the Scrutiny Omnibus image to the GitHub Container Registry when changes are pushed to the master branch or manually triggered.
1 parent 7c35d59 commit a586b5c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build & Publish Scrutiny Omnibus Image
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- 'docker/**'
8+
- 'webapp/**'
9+
- 'collector/**'
10+
- 'go.mod'
11+
- 'go.sum'
12+
- 'example.scrutiny.yaml'
13+
- 'example.collector.yaml'
14+
workflow_dispatch:
15+
16+
jobs:
17+
build-and-push-omnibus:
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
packages: write
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Log in to GitHub Container Registry
28+
uses: docker/login-action@v3
29+
with:
30+
registry: ghcr.io
31+
username: ${{ github.actor }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Build & push omnibus image
35+
uses: docker/build-push-action@v6
36+
with:
37+
context: .
38+
file: docker/omnibus/Dockerfile
39+
push: true
40+
tags: |
41+
ghcr.io/${{ github.repository_owner }}/scrutiny:omnibus
42+
ghcr.io/${{ github.repository_owner }}/scrutiny:latest

0 commit comments

Comments
 (0)