-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.1 KB
/
docker.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
# 任意のレジストリに Docker image を公開orビルドする。
# プルリクの作成・更新時に動作する。
name: Docker
on:
pull_request:
branches:
- main
- master
types:
- opened
- synchronize
paths:
- .github/workflows/docker.yml
pull_request_target:
branches:
- main
- master
types:
- opened
- synchronize
- reopened
- closed
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.merged == true && github.base_ref || github.event.pull_request.head.sha }}
jobs:
docker-ci:
name: Docker CI
uses: book000/templates/.github/workflows/reusable-docker.yml@master
with:
targets: >-
[
{ imageName: "tomacheese/watch-discord-dev-changes", context: ".", file: "Dockerfile", packageName: "watch-discord-dev-changes" }
]
# registry: registry.hub.docker.com # default: ghcr.io
# platforms: linux/amd64 # default: linux/amd64,linux/arm64
secrets:
DOCKER_USERNAME: ${{ github.actor }}
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}