Skip to content

Commit 6fb9b7c

Browse files
committed
Merge branch 'master' of github.com:scrtlabs/secret-ai-fetch-agent
2 parents dce2320 + 7828154 commit 6fb9b7c

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build and Publish SecretAI Caddy
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
paths:
7+
- '**.go'
8+
- '**.yaml'
9+
- 'trigger-action.txt'
10+
pull_request:
11+
branches: [ "master" ]
12+
paths:
13+
- '**.go'
14+
- '**.yaml'
15+
- 'trigger-action.txt'
16+
17+
jobs:
18+
build-and-push:
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
contents: read
23+
packages: write # Required to publish to ghcr.io
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Login to GitHub Container Registry
33+
uses: docker/login-action@v3
34+
with:
35+
registry: ghcr.io
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Build and push Docker image
40+
uses: docker/build-push-action@v5
41+
with:
42+
context: .
43+
file: Dockerfile
44+
push: true
45+
tags: ghcr.io/${{ github.repository_owner }}/secret-ai-caddy:latest

0 commit comments

Comments
 (0)