-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (42 loc) · 1.45 KB
/
excalidraw.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
38
39
40
41
42
---
on:
push:
branches:
- main
paths:
- .github/workflows/excalidraw.yml
- excalidraw/**
jobs:
excalidraw:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Login
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Docker
uses: docker/setup-buildx-action@v1
- name: Build Docker
uses: docker/build-push-action@v2
with:
push: true
context: ${{ github.job }}
file: ${{ github.job }}/Dockerfile
platforms: linux/amd64
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.job }}:latest
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.job }}:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.job }}:buildcache,mode=max
- name: Push Docker Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
repository: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.job }}
short-description: '使用参考 README,信息参考:https://www.dosk.win/'