File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments