-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (49 loc) · 1.38 KB
/
publish-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
42
43
44
45
46
47
48
49
50
51
52
name: Build and publish images
on:
push:
branches:
- master
- dev-master
paths:
- .github/matrix.json
- .github/workflows/publish-images.yml
- 'docker/**'
jobs:
setup:
uses: kyzima-spb/gh-actions/.github/workflows/read-matrix.yml@master
with:
path: ./.github/matrix.json
build:
needs: setup
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
matrix: ${{ fromJSON(needs.setup.outputs.matrix) }}
max-parallel: 5
steps:
-
name: Checkout
uses: actions/checkout@v4
-
uses: kyzima-spb/gh-actions/.github/actions/docker-build-image@master
with:
context: ./docker/root
file: ./docker/Dockerfile
images: |
${{ vars.IMAGE_NAME }}
{ghcr}
build-args: |
TIXATI_VERSION=${{ matrix.version }}
secrets: |
"mirrorurl=${{ secrets.TIXATI_MIRROR }}"
tags: |
${{ matrix.version }}
flavor: |
latest=${{ matrix.latest }}
cache: |
arg=default,version=buildcache-${{ matrix.version }}
push: ${{ github.ref_name == 'master' }}
docker-username: ${{ secrets.DOCKER_HUB_USERNAME }}
docker-password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}