add builds using ga workflows (#89) #1
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: build (push) | ||
on: | ||
push: | ||
branches: [ "main", "release-*" ] | ||
tags: | ||
- '^v?\d+\.\d+\.\d+(?:-.*)?$' | ||
permissions: | ||
id-token: write # This is required for requesting the JWT token | ||
contents: read # This is required for actions/checkout | ||
jobs: | ||
compute-tags: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tags: ${{ steps.get_tag.outputs.TAGS }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Get the latest tag | ||
id: get_tag | ||
run: | | ||
{ | ||
echo 'TAGS<<EOF' | ||
echo "${{ github.sha }}" | ||
echo "${{ github.ref_name}}" | ||
echo EOF | ||
} >> "$GITHUB_OUTPUT" | ||
build-operator: | ||
needs: compute-tag | ||
Check failure on line 32 in .github/workflows/build-push.yaml GitHub Actions / build (push)Invalid workflow file
|
||
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main | ||
with: | ||
name: dockerregistry-operator | ||
dockerfile: components/operator/Dockerfile | ||
tags: ${{ needs.compute-tag.outputs.tag }} | ||
build-registry-init: | ||
needs: compute-tag | ||
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main | ||
with: | ||
name: registry-init | ||
dockerfile: components/registry-init/Dockerfile | ||
tags: ${{ needs.compute-tag.outputs.tag }} |