Skip to content

Generate Nightly Image 17 Alpha #106

Generate Nightly Image 17 Alpha

Generate Nightly Image 17 Alpha #106

Workflow file for this run

name: Generate Nightly Image 17 Alpha
on:
workflow_dispatch:
schedule:
- cron: '15 23 * * *'
jobs:
release:
runs-on: [self-hosted, ARM64, stable]
environment: DOCKER_HUB
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: 17.x
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
# list of Docker images to use as base name for tags
images: |
plone/plone-frontend
# update label with proper version number
labels: |
org.label-schema.docker.cmd=docker run -d -p 3000:3000 plone/plone-frontend:nightly
# generate Docker tags based on the following events/attributes
tags: |
type=raw,value=nightly17
type=schedule,pattern=nightly17-{{date 'YYYYMMDD'}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
context: .
file: Dockerfile.nightly
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}