From 79feafa2526e259adabff5669fe2be4d8caa4fb0 Mon Sep 17 00:00:00 2001 From: "daniel.colina" Date: Thu, 31 Aug 2023 09:30:29 +0200 Subject: [PATCH] #22706 Building CORE docker image for current commit before running cli testcontainers tests. --- .github/workflows/cli-cicd-test.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/cli-cicd-test.yml b/.github/workflows/cli-cicd-test.yml index 66002902732e..19e0685b97ba 100644 --- a/.github/workflows/cli-cicd-test.yml +++ b/.github/workflows/cli-cicd-test.yml @@ -19,6 +19,44 @@ jobs: - id: checkout-core name: Checkout core uses: actions/checkout@v3 + + - + id: meta + name: Docker meta + uses: docker/metadata-action@v4 + with: + # list of Docker images to use as base name for tags + images: | + dotcms/dotcms + # generate Docker tags based on the following events/attributes + tags: | + type=sha,enable=true,priority=100,prefix=master_,suffix=_SNAPSHOT,format=short + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v4 + with: + push: false + context: docker/dotcms + platforms: linux/amd64,linux/arm64 + tags: ${{ steps.meta.outputs.tags }} + pull: true + no-cache: true + build-args: | + BUILD_ID=${{ github.sha }} + BUILD_FROM=COMMIT + - id: prepare-license name: Prepare license working-directory: ./tools/dotcms-cli/