Skip to content

Commit

Permalink
#22706 Building CORE docker image for current commit before running c…
Browse files Browse the repository at this point in the history
…li testcontainers tests.
  • Loading branch information
dcolina committed Aug 31, 2023
1 parent fec6a4b commit 79feafa
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cli-cicd-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 79feafa

Please sign in to comment.