Skip to content

Build/Push dotCMS Dev Image (nightly) #59

Build/Push dotCMS Dev Image (nightly)

Build/Push dotCMS Dev Image (nightly) #59

# This job builds the dotCMS dev image: dotcms/dotcms-dev:master_latest_SNAPSHOT
# every night. For more information about this docker image, see
# https://github.com/dotCMS/core/tree/master/docker/dev-env
name: Build/Push dotCMS Dev Image (nightly)
on:
schedule:
- cron: "18 2 * * *"
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
uses: ./.github/actions/cleanup-runner
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
dotcms/dotcms-dev
# generate Docker tags based on the following events/attributes
tags: |
type=sha,enable=true,priority=100,prefix=master_,suffix=_SNAPSHOT,format=short
type=raw,value=master_latest_SNAPSHOT
-
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 Hubdocker-build-master-branch.yml
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: true
context: docker/dev-env
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
pull: true
no-cache: true
build-args: |
DOTCMS_DOCKER_TAG=master_latest_SNAPSHOT