Release 4.3.2 #109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy_containers: | |
name: Build and deploy container images | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image-name: ["kas", "kas-isar"] | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Identify release build | |
run: | | |
# The release workflow will push :latest for tagged revisions | |
if git describe --exact-match --tags --match '*.*'; then | |
echo "PUSH_MASTER=false" >> $GITHUB_ENV | |
else | |
echo "PUSH_MASTER=true" >> $GITHUB_ENV | |
fi | |
- name: Set up docker build | |
uses: ./.github/actions/docker-init | |
if: ${{ env.PUSH_MASTER == 'true' }} | |
with: | |
deploy-user: ${{ github.actor }} | |
deploy-token: ${{ secrets.GITHUB_TOKEN }} | |
image-name: ${{ matrix.image-name }} | |
- name: Build ${{ matrix.image-name }} image | |
uses: docker/build-push-action@v5 | |
if: ${{ env.PUSH_MASTER == 'true' }} | |
with: | |
context: /home/runner/kas-clone | |
target: ${{ matrix.image-name }} | |
platforms: linux/amd64,linux/arm64 | |
build-args: | | |
SOURCE_DATE_EPOCH=${{ env.SOURCE_DATE_EPOCH }} | |
DEBIAN_TAG=${{ env.DEBIAN_TAG }} | |
provenance: mode=max,reproducible=true | |
outputs: type=registry,rewrite-timestamp=true | |
tags: ghcr.io/siemens/kas/${{ matrix.image-name }} | |
annotations: ${{ env.DOCKER_METADATA_OUTPUT_ANNOTATIONS }} |