From c23a534f86679a96a4c766e303d7771b590486a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Pa=C3=9F?= <22845248+mpass99@users.noreply.github.com> Date: Tue, 7 Dec 2021 23:10:59 +0100 Subject: [PATCH] Add workflow to build e2e docker image --- .github/workflows/docker-image.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 576bc6f..278b4b6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -51,3 +51,16 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + - name: Extract metadata (tags, labels) for Docker e2e image + id: e2e-meta + uses: docker/metadata-action@v3 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-e2e-tests + - name: Build and push e2e Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: deploy/e2e-test-image/Dockerfile + push: true + tags: ${{ steps.e2e-meta.outputs.tags }} + labels: ${{ steps.e2e-meta.outputs.labels }}