generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (38 loc) · 1.08 KB
/
deploy-docker-images.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
name: Build and push docker images
on:
workflow_dispatch:
inputs:
force_rebuild:
description: 'Force rebuild of all images'
default: false
type: boolean
push:
branches:
- '**'
tags:
- 'v*'
env:
REGISTRY: ghcr.io
jobs:
build-and-push-all-images:
name: Build and push all docker images
strategy:
fail-fast: false
matrix:
image_name:
- everest-clang-format
- run-env-base
- build-env-base
- dev-env-base
- build-kit
uses: ./.github/workflows/deploy-single-docker-image.yml
with:
force_rebuild: ${{ inputs.force_rebuild || (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/' )) || false }}
image_name: ${{ matrix.image_name }}
docker_directory: docker/images/
docker_registry: ghcr.io
github_ref_before: ${{ github.event.before }}
github_ref_after: ${{ github.event.after }}
secrets:
SA_GITHUB_PAT: ${{ secrets.SA_GITHUB_PAT }}
SA_GITHUB_USERNAME: ${{ secrets.SA_GITHUB_USERNAME }}