1
1
name : Pull Request
2
2
3
3
on :
4
- pull_request_target :
4
+ pull_request :
5
5
branches :
6
6
- master
7
7
@@ -45,24 +45,19 @@ jobs:
45
45
- name : Set up Docker Buildx
46
46
uses : docker/setup-buildx-action@v3
47
47
48
- - name : Login to Registry
49
- uses : docker/login-action@v3
50
- with :
51
- username : ${{ secrets.STAKATER_DOCKERHUB_USERNAME }}
52
- password : ${{ secrets.STAKATER_DOCKERHUB_PASSWORD }}
53
-
54
48
- name : Generate image repository path
55
49
run : |
56
50
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
57
51
58
- - name : Build and push
52
+ # To identify any broken changes in dockerfiles or dependencies
53
+
54
+ - name : Build image
59
55
uses : docker/build-push-action@v6
60
56
with :
61
57
context : .
62
58
file : ${{ env.DOCKER_FILE_PATH }}
63
59
pull : true
64
- push : true
65
- build-args : GIT_ACCESS_TOKEN=${{ secrets.STAKATER_GITHUB_TOKEN }}
60
+ push : false
66
61
cache-to : type=inline
67
62
tags : |
68
63
${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}
@@ -71,29 +66,29 @@ jobs:
71
66
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
72
67
org.opencontainers.image.revision=${{ github.sha }}
73
68
74
- - name : Comment on PR
75
- uses : mshick/add-pr-comment@v2
76
- env :
77
- GITHUB_TOKEN : ${{ secrets.STAKATER_GITHUB_TOKEN }}
78
- with :
79
- message : ' @${{ github.actor }} Image is available for testing. `docker pull ${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}`'
80
- allow-repeats : false
69
+ # - name: Comment on PR
70
+ # uses: mshick/add-pr-comment@v2
71
+ # env:
72
+ # GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
73
+ # with:
74
+ # message: '@${{ github.actor }} Image is available for testing. `docker pull ${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}`'
75
+ # allow-repeats: false
81
76
82
- - name : Notify Failure
83
- if : failure()
84
- uses : mshick/add-pr-comment@v2
85
- env :
86
- GITHUB_TOKEN : ${{ secrets.STAKATER_GITHUB_TOKEN }}
87
- with :
88
- message : ' @${{ github.actor }} Yikes! You better fix it before anyone else finds out! [Build](https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha }}/checks) has Failed!'
89
- allow-repeats : false
77
+ # - name: Notify Failure
78
+ # if: failure()
79
+ # uses: mshick/add-pr-comment@v2
80
+ # env:
81
+ # GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
82
+ # with:
83
+ # message: '@${{ github.actor }} Yikes! You better fix it before anyone else finds out! [Build](https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha }}/checks) has Failed!'
84
+ # allow-repeats: false
90
85
91
- - name : Notify Slack
92
- uses : 8398a7/action-slack@v3
93
- if : always() # Pick up events even if the job fails or is canceled.
94
- with :
95
- status : ${{ job.status }}
96
- fields : repo,author,action,eventName,ref,workflow
97
- env :
98
- GITHUB_TOKEN : ${{ secrets.STAKATER_GITHUB_TOKEN }}
99
- SLACK_WEBHOOK_URL : ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
86
+ # - name: Notify Slack
87
+ # uses: 8398a7/action-slack@v3
88
+ # if: always() # Pick up events even if the job fails or is canceled.
89
+ # with:
90
+ # status: ${{ job.status }}
91
+ # fields: repo,author,action,eventName,ref,workflow
92
+ # env:
93
+ # GITHUB_TOKEN: ${{ secrets.STAKATER_GITHUB_TOKEN }}
94
+ # SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
0 commit comments