-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.05 KB
/
electron.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 Electron Images
on:
schedule:
- cron: "0 22 * * *"
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to docker.io
uses: docker/login-action@v2
with:
registry: docker.io
username: docworld
password: ${{ secrets.DOCKER_TOKEN }}
- name: Get tag version
uses: ikrong/[email protected]
with:
function: fetch
params: '["https://api.github.com/repos/electron/electron/releases/latest","get",["tag_name"]]'
- name: Build electron doc
uses: docker/[email protected]
with:
context: ./electron/
push: true
build-args: |
CROWDIN_PERSONAL_TOKEN=${{secrets.CROWDIN_PERSONAL_TOKEN}}
tags: docworld/electron:latest, docworld/electron:${{ env.tag_name }}
UpdateDockerDescription:
needs: [Build]
uses: ikrong/documents/.github/workflows/_updateDocker.yml@main
with:
repoName: electron
secrets: inherit