-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (42 loc) · 1.18 KB
/
docker_main.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
43
44
45
46
47
48
name: Build and push latest images to ghcr.io and quay.io
on:
push:
branches:
- master
paths:
- .github/workflows/docker_main.yml
- .github/workflows/build_and_push_all_images.yml
- .github/workflows/build_e2xgrader_images.yml
- .github/workflows/build_image.yml
- images/**
jobs:
set_date:
runs-on: ubuntu-latest
outputs:
date: ${{ steps.set_date.outputs.date }}
steps:
- name: Set up date tag
id: set_date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
build_and_push_to_ghcr:
name: ghcr.io
needs: set_date
uses: ./.github/workflows/build_and_push_all_images.yml
with:
force_build: false
push: true
registry: ghcr.io
tag: latest,${{ needs.set_date.outputs.date }}
e2xgrader_installation_source: pypi
secrets: inherit
build_and_push_to_quay:
name: quay.io
needs: set_date
uses: ./.github/workflows/build_and_push_all_images.yml
with:
force_build: false
push: true
registry: quay.io
tag: latest,${{ needs.set_date.outputs.date }}
e2xgrader_installation_source: pypi
secrets: inherit