Skip to content

Commit

Permalink
Fix release (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored Jul 23, 2024
1 parent 93002b7 commit f997e4e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build (push)

on:
push:
branches: ["main", "release-*"]

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-tags
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-tags.outputs.tags }}
build-registry-init:
needs: compute-tags
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-tags.outputs.tags }}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: build (push)

on:
push:
branches: [ "main", "release-*" ]
tags:
- '^v?\d+\.\d+\.\d+(?:-.*)?$'

Expand Down

0 comments on commit f997e4e

Please sign in to comment.