Skip to content

Commit

Permalink
build: github action push docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ikxin committed Sep 14, 2024
1 parent c944a98 commit 2406076
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci

on:
push:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ikxin/kms-tools:latest
2 changes: 1 addition & 1 deletion service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ app.use(cors())
app.use(
cron({
name: 'heartbeat',
pattern: Patterns.everyMinutes(10),
pattern: Patterns.everyMinutes(5),
run: runCheck,
}),
)
Expand Down

0 comments on commit 2406076

Please sign in to comment.