Skip to content

Commit

Permalink
feature(main): fix version (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>
  • Loading branch information
cuisongliu authored Jun 7, 2023
1 parent 6ba3cd2 commit 03f0bd0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- uses: docker/setup-buildx-action@4b4e9c3e2d4531116a6f8ba8e71fc6e2cb6e6c8c # v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: ${{ (github.event_name == 'push') }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -39,6 +40,7 @@ jobs:
- name: Expose git commit data
uses: rlespinasse/git-commit-data-action@v1
- name: build (and publish) main image
if: ${{ (github.event_name == 'push') }}
run: |
docker buildx build \
--platform linux/amd64 \
Expand All @@ -47,3 +49,12 @@ jobs:
-t ghcr.io/${{ github.repository_owner }}/gh-rebot:${{ env.GIT_COMMIT_SHORT_SHA }} \
-f Dockerfile \
.
- name: build main image
if: ${{ (github.event_name != 'push') }}
run: |
docker buildx build \
--platform linux/amd64 \
--label "org.opencontainers.image.source=https://github.com/${{ github.repository_owner }}/gh-rebot" \
-t ghcr.io/${{ github.repository_owner }}/gh-rebot:${{ env.GIT_COMMIT_SHORT_SHA }} \
-f Dockerfile \
.
4 changes: 3 additions & 1 deletion .github/workflows/test-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
- uses: labring/[email protected]rc3
- uses: labring/[email protected]rc4
if: ${{ (github.event_name != 'push') }}
with:
version: v0.0.6-rc3
env:
SEALOS_TYPE: "/comment"
GH_TOKEN: "${{ secrets.GH_PAT }}"
4 changes: 3 additions & 1 deletion .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: labring/[email protected]rc3
- uses: labring/[email protected]rc4
if: ${{ (github.event_name != 'push') }}
with:
version: v0.0.6-rc3
env:
SEALOS_TYPE: "pr_comment"
SEALOS_FILENAME: "templates/template.md"
Expand Down

0 comments on commit 03f0bd0

Please sign in to comment.