-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.01 KB
/
docker_push.yml
File metadata and controls
41 lines (40 loc) · 1.01 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
on:
workflow_call:
inputs:
DOCKER_HUB_USERNAME:
required: true
type: string
secrets:
DOCKER_HUB_TOKEN:
required: true
jobs:
cron-exec:
name: cron-exec
uses: ./.github/workflows/docker_image_action.yml
with:
FOLDER_NAME: cron-exec
IMAGE_NAME: cron-exec
IMAGE_TAGS: |
latest
alpine
alpine-3.9
DOCKER_HUB_USERNAME: ${{ inputs.DOCKER_HUB_USERNAME }}
secrets:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
restart-after-change:
name: restart-after-change
needs:
- cron-exec
if: always()
uses: ./.github/workflows/docker_image_action.yml
with:
FOLDER_NAME: restart-after-change
IMAGE_NAME: restart-after-change
IMAGE_TAGS: |
latest
alpine
alpine-3.9
FORCE_BUILD: ${{ needs.cron-exec.outputs.codeChange == 'true' }}
DOCKER_HUB_USERNAME: ${{ inputs.DOCKER_HUB_USERNAME }}
secrets:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}