This repository was archived by the owner on Aug 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 - uses : docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2
3030 - name : Login to GitHub Container Registry
3131 uses : docker/login-action@v2
32+ if : ${{ (github.event_name == 'push') }}
3233 with :
3334 registry : ghcr.io
3435 username : ${{ github.repository_owner }}
3940 - name : Expose git commit data
4041 uses : rlespinasse/git-commit-data-action@v1
4142 - name : build (and publish) main image
43+ if : ${{ (github.event_name == 'push') }}
4244 run : |
4345 docker buildx build \
4446 --platform linux/amd64 \
4749 -t ghcr.io/${{ github.repository_owner }}/gh-rebot:${{ env.GIT_COMMIT_SHORT_SHA }} \
4850 -f Dockerfile \
4951 .
52+ - name : build main image
53+ if : ${{ (github.event_name != 'push') }}
54+ run : |
55+ docker buildx build \
56+ --platform linux/amd64 \
57+ --label "org.opencontainers.image.source=https://github.com/${{ github.repository_owner }}/gh-rebot" \
58+ -t ghcr.io/${{ github.repository_owner }}/gh-rebot:${{ env.GIT_COMMIT_SHORT_SHA }} \
59+ -f Dockerfile \
60+ .
Original file line number Diff line number Diff line change 1010 steps :
1111 - name : Checkout the latest code
1212 uses : actions/checkout@v3
13- - uses : labring/gh-rebot@v0.0.6-rc3
13+ - uses : labring/gh-rebot@v0.0.6-rc4
1414 if : ${{ (github.event_name != 'push') }}
15+ with :
16+ version : v0.0.6-rc3
1517 env :
1618 SEALOS_TYPE : " /comment"
1719 GH_TOKEN : " ${{ secrets.GH_PAT }}"
Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v3
12- - uses : labring/gh-rebot@v0.0.6-rc3
12+ - uses : labring/gh-rebot@v0.0.6-rc4
1313 if : ${{ (github.event_name != 'push') }}
14+ with :
15+ version : v0.0.6-rc3
1416 env :
1517 SEALOS_TYPE : " pr_comment"
1618 SEALOS_FILENAME : " templates/template.md"
You can’t perform that action at this time.
0 commit comments