File tree 1 file changed +7
-6
lines changed 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 7
7
paths :
8
8
- " dogfood/**"
9
9
- " .github/workflows/dogfood.yaml"
10
- # Uncomment these lines when testing with CI.
11
- # pull_request:
12
- # paths:
13
- # - "dogfood/**"
14
- # - ".github/workflows/dogfood.yaml"
10
+ pull_request :
11
+ paths :
12
+ - " dogfood/**"
13
+ - " .github/workflows/dogfood.yaml"
15
14
workflow_dispatch :
16
15
17
16
jobs :
37
36
uses : docker/setup-buildx-action@v3
38
37
39
38
- name : Login to DockerHub
39
+ if : github.ref == 'refs/heads/main'
40
40
uses : docker/login-action@v3
41
41
with :
42
42
username : ${{ secrets.DOCKERHUB_USERNAME }}
@@ -47,13 +47,14 @@ jobs:
47
47
with :
48
48
context : " {{defaultContext}}:dogfood"
49
49
pull : true
50
- push : true
50
+ push : ${{ github.ref == 'refs/heads/main' }}
51
51
tags : " codercom/oss-dogfood:${{ steps.docker-tag-name.outputs.tag }},codercom/oss-dogfood:latest"
52
52
cache-from : type=registry,ref=codercom/oss-dogfood:latest
53
53
cache-to : type=inline
54
54
55
55
deploy_template :
56
56
needs : deploy_image
57
+ if : github.ref == 'refs/heads/main'
57
58
runs-on : ubuntu-latest
58
59
steps :
59
60
- name : Checkout
You can’t perform that action at this time.
0 commit comments