mirror of
https://github.com/easychen/checkchan-dist.git
synced 2026-08-28 17:45:05 +08:00
Merge branch 'master' of https://github.com/easychen/checkchan-dist
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Docker Login
|
||||
uses: docker/login-action@v2.0.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
||||
|
||||
- name: Docker Setup Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2.0.0
|
||||
|
||||
- name: Build and push Docker images
|
||||
uses: docker/build-push-action@v3.0.0
|
||||
with:
|
||||
context: ./docker/
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: easychen/checkchan:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user