Skip to content

Commit

Permalink
update CI action (#5)
Browse files Browse the repository at this point in the history
**Please provide a description of this PR:**

---------

Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain authored Jul 30, 2024
1 parent 97ab03e commit ee147e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/code-check.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Code Check

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ permissions:
contents: read
packages: write

# Limit workflow run or job concurrency,
# avoid workflow failed when merge more than one PR in short time.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-check:
name: lint
Expand Down Expand Up @@ -53,6 +59,11 @@ jobs:
with:
go-version: 1.22.x
cache: true
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: make docker.push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit ee147e4

Please sign in to comment.