Skip to content

Commit 759a598

Browse files
committed
tmp
1 parent ad4e00d commit 759a598

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/build-agent-splunk.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,44 @@ on:
44
branches: [main]
55
paths:
66
- 'tools/agents/agent-splunk/**'
7+
pull_request:
8+
branches: [main]
9+
paths:
10+
- 'tools/agents/agent-splunk/**'
711
workflow_dispatch:
812

913
jobs:
1014
build:
1115
runs-on: ubuntu-latest
1216
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-go@v5
17+
- uses: actions/checkout@v5
18+
- uses: actions/setup-go@v6
1519
with:
1620
go-version: '1.25'
1721
- name: Build
1822
working-directory: tools/agents/agent-splunk
1923
run: CGO_ENABLED=0 go build -o agent-splunk .
2024
- name: Upload binary artifact
21-
uses: actions/upload-artifact@v4
25+
uses: actions/upload-artifact@v5
2226
with:
2327
name: agent-splunk
2428
path: tools/agents/agent-splunk/agent-splunk
2529
- name: Build and push image
26-
uses: docker/build-push-action@v5
30+
uses: docker/build-push-action@v6
2731
with:
2832
context: tools/agents/agent-splunk
29-
push: true
33+
file: tools/agents/agent-splunk/Containerfile
34+
push: ${{ github.event_name != 'pull_request' }}
3035
tags: ghcr.io/pulp/agent-splunk:latest
3136

3237
release:
3338
needs: build
3439
runs-on: ubuntu-latest
35-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
40+
#if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
3641
permissions:
3742
contents: write
3843
steps:
39-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v5
4045
- name: Determine version
4146
id: version
4247
run: |
@@ -46,7 +51,7 @@ jobs:
4651
fi
4752
echo "tag=$VERSION" >> "$GITHUB_OUTPUT"
4853
- name: Download binary artifact
49-
uses: actions/download-artifact@v4
54+
uses: actions/download-artifact@v5
5055
with:
5156
name: agent-splunk
5257
- name: Create GitHub Release

tools/agents/agent-splunk/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ go build -o agent-splunk .
4141
podman build -f Containerfile -t agent-splunk .
4242
podman run --env-file .env agent-splunk
4343
```
44+

0 commit comments

Comments
 (0)