Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CI action #5

Merged
merged 3 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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