From 415688919a67e4a2a9848f7de5a0102f2e21b8dc Mon Sep 17 00:00:00 2001 From: Tim Pambor Date: Sat, 11 Jul 2026 10:01:01 +0200 Subject: [PATCH] ci: fih: add workflow to build FIH docker image Add a manually triggered workflow to build the docker image for the FIH tests and push it to the GitHub Container Registry. This facilitates updating the FIH tests in the future without having to manually build and push the docker image. Signed-off-by: Tim Pambor --- .github/workflows/fih_docker_build.yaml | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/fih_docker_build.yaml diff --git a/.github/workflows/fih_docker_build.yaml b/.github/workflows/fih_docker_build.yaml new file mode 100644 index 0000000000..938e65c814 --- /dev/null +++ b/.github/workflows/fih_docker_build.yaml @@ -0,0 +1,39 @@ +on: + workflow_dispatch: + +name: Build FIH Docker Image + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - uses: actions/checkout@v7 + with: + fetch-depth: 0 + submodules: false + + - name: Load image config + run: | + source ./ci/fih-tests_config.sh + echo "FIH_IMAGE_NAME=$FIH_IMAGE_NAME" >> $GITHUB_ENV + echo "FIH_IMAGE_VERSION=$FIH_IMAGE_VERSION" >> $GITHUB_ENV + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v4 + + - name: Authenticate to GH Container Registry + uses: docker/login-action@v4 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v7 + with: + context: ci/fih_test_docker/docker-build + push: true + tags: ghcr.io/${{ github.repository_owner }}/${{ env.FIH_IMAGE_NAME }}:${{ env.FIH_IMAGE_VERSION }}