forked from dianping/cat
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 872 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: false
default: 'warning'
type: choice
options:
- info
- warning
- debug
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
HUB: meituaninc
IMAGE: cat
TAG: ${{ github.sha }}
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build the Docker image
run: docker buildx create --use --name cat-bulder --driver docker-container &&
docker buildx build --load
-t $HUB/$IMAGE:$TAG -t $HUB/$IMAGE:latest
-f docker/Dockerfile . &&
docker buildx rm cat-bulder