Skip to content
This repository was archived by the owner on Aug 26, 2023. It is now read-only.

Commit 03f0bd0

Browse files
authored
feature(main): fix version (#18)
Signed-off-by: cuisongliu <cuisongliu@qq.com>
1 parent 6ba3cd2 commit 03f0bd0

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/go.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
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 }}
@@ -39,6 +40,7 @@ jobs:
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 \
@@ -47,3 +49,12 @@ jobs:
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+
.

.github/workflows/test-bot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
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 }}"

.github/workflows/test-pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ jobs:
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"

0 commit comments

Comments
 (0)