mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-18 03:13:46 +00:00
fix e2e on main
This commit is contained in:
@@ -5,6 +5,11 @@ on:
|
|||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
backend_image:
|
||||||
|
description: 'Backend image to use in E2E tests (optional, default: ghcr.io/morbalint/kemkas-backend:b8565f8e)'
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci-fe:
|
ci-fe:
|
||||||
@@ -45,7 +50,7 @@ jobs:
|
|||||||
attestations: write
|
attestations: write
|
||||||
id-token: write
|
id-token: write
|
||||||
outputs:
|
outputs:
|
||||||
image_tag: ${{ steps.image-tag.outputs.image_tag }}
|
image_sha_tag: ${{ steps.image-tag.outputs.image_sha_tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@v3
|
||||||
@@ -66,7 +71,7 @@ jobs:
|
|||||||
tags+=$'\n'"${image_repo}:latest"
|
tags+=$'\n'"${image_repo}:latest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "image_tag=${sha_tag}" >> "$GITHUB_OUTPUT"
|
echo "image_sha_tag=${sha_tag}" >> "$GITHUB_OUTPUT"
|
||||||
{
|
{
|
||||||
echo "tags<<EOF"
|
echo "tags<<EOF"
|
||||||
echo "$tags"
|
echo "$tags"
|
||||||
@@ -91,7 +96,7 @@ jobs:
|
|||||||
attestations: write
|
attestations: write
|
||||||
id-token: write
|
id-token: write
|
||||||
outputs:
|
outputs:
|
||||||
image_tag: ${{ steps.image-tag.outputs.image_tag }}
|
image_sha_tag: ${{ steps.image-tag.outputs.image_sha_tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@v3
|
||||||
@@ -112,7 +117,7 @@ jobs:
|
|||||||
tags+=$'\n'"${image_repo}:latest"
|
tags+=$'\n'"${image_repo}:latest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "image_tag=${sha_tag}" >> "$GITHUB_OUTPUT"
|
echo "image_sha_tag=${sha_tag}" >> "$GITHUB_OUTPUT"
|
||||||
{
|
{
|
||||||
echo "tags<<EOF"
|
echo "tags<<EOF"
|
||||||
echo "$tags"
|
echo "$tags"
|
||||||
@@ -138,9 +143,9 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
packages: read
|
packages: read
|
||||||
env:
|
env:
|
||||||
BACKEND_IMAGE: ${{ vars.BACKEND_IMAGE || 'ghcr.io/morbalint/kemkas-backend:b8565f8e' }}
|
BACKEND_IMAGE: ${{ github.event.inputs.backend_image || 'ghcr.io/morbalint/kemkas-backend:b8565f8e' }}
|
||||||
FRONTEND_IMAGE: ${{ needs.docker-fe-build.outputs.image_tag }}
|
FRONTEND_IMAGE: ${{ needs.docker-fe-build.outputs.image_sha_tag }}
|
||||||
E2E_IMAGE: ${{ needs.docker-e2e-build.outputs.image_tag }}
|
E2E_IMAGE: ${{ needs.docker-e2e-build.outputs.image_sha_tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
|
|||||||
Reference in New Issue
Block a user