-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (47 loc) · 1.89 KB
/
Copy pathdevilbox_action.yml
File metadata and controls
55 lines (47 loc) · 1.89 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# filename: devilbox_action.yml
# job-name: devilbox_build
#
# -------------------------------------------------------------------------------------------------
# Job Name
# -------------------------------------------------------------------------------------------------
name: devilbox_build
# -------------------------------------------------------------------------------------------------
# When to run
# -------------------------------------------------------------------------------------------------
on:
# Push or pull_request will be determined in jobs.configure.enabled
push:
paths:
- '.github/workflows/devilbox*.yml'
- '!.github/workflows/devilbox_schedule.yml'
- 'Dockerfiles/devilbox/**'
- '!Dockerfiles/devilbox/*.md'
- 'tests/**'
- 'Makefile'
pull_request:
paths:
- '.github/workflows/devilbox*.yml'
- '!.github/workflows/devilbox_schedule.yml'
- 'Dockerfiles/devilbox/**'
- '!Dockerfiles/devilbox/*.md'
- 'tests/**'
- 'Makefile'
# Dispatch: allows for manual trigger via GH UI
workflow_dispatch:
jobs:
# (1/2) Determine repository params
params:
uses: ./.github/workflows/devilbox_params.yml
# (2/2) Build
docker:
needs: [params]
uses: devilbox/github-actions/.github/workflows/docker-name-version-flavour-arch.yml@master
with:
enabled: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && (github.event.pull_request.user.login != 'cytopia')) }}
can_deploy: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/release-') }}
matrix: ${{ needs.params.outputs.matrix }}
refs: ${{ needs.params.outputs.refs }}
secrets:
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}