Skip to content

Merge branch 'dev-master' #40

Merge branch 'dev-master'

Merge branch 'dev-master' #40

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) }}
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_DOWNLOAD_URL=${{ secrets.TIXATI_MIRROR }}
TIXATI_VERSION=${{ matrix.version }}
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 }}