Build containers for branches (#3560)

Revert the change introduced in previous PRs. For each PR, we want to build images to check that the build passes successfully.

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
Maksim Nabokikh
2024-06-03 03:59:02 +02:00
committed by GitHub
parent f3ef7d46df
commit 7b37bbbacf
-17
View File
@@ -28,26 +28,9 @@ permissions:
contents: read
jobs:
config:
runs-on: ubuntu-latest
steps:
- name: Check Secrets
id: check-secrets
env:
username: ${{ secrets.DOCKER_USERNAME || '' }}
password: ${{ secrets.DOCKER_PASSWORD || '' }}
if: ${{ env.username != '' && env.password != '' }}
shell: bash
run:
echo has-secrets=1 >> "$GITHUB_OUTPUT"
outputs:
has-secrets: ${{ steps.check-secrets.outputs.has-secrets }}
container-images:
name: Container images
runs-on: ubuntu-latest
needs: config
if: ${{ needs.config.outputs.has-secrets }}
strategy:
matrix:
variant: