Skip to content

Prepare release 6.0.9 (#133) (#134) #52

Prepare release 6.0.9 (#133) (#134)

Prepare release 6.0.9 (#133) (#134) #52

Workflow file for this run

name: Release new Docker image
on:
push:
tags:
- 'v*'
workflow_dispatch:
env:
BASE_IMAGE_NAME: plone/server
PLATFORMS: linux/amd64,linux/arm64
IS_LATEST: true
jobs:
meta:
runs-on: ubuntu-latest
outputs:
BASE_IMAGE_NAME: ${{ steps.vars.outputs.BASE_IMAGE_NAME }}
IS_LATEST: ${{ steps.vars.outputs.IS_LATEST }}
PLATFORMS: ${{ steps.vars.outputs.PLATFORMS }}
PLONE_VERSION: ${{ steps.vars.outputs.PLONE_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set BASE_IMAGE_NAME, IS_LATEST, PLATFORMS, PLONE_VERSION
id: vars
run: |
echo "BASE_IMAGE_NAME=$BASE_IMAGE_NAME" >> $GITHUB_OUTPUT
echo "PLATFORMS=$PLATFORMS" >> $GITHUB_OUTPUT
echo "IS_LATEST=$IS_LATEST" >> $GITHUB_OUTPUT
echo "PLONE_VERSION=$(cat version.txt)" >> $GITHUB_OUTPUT
builder-image:
needs:
- meta
uses: ./.github/workflows/image-release.yml
with:
plone-version: ${{ needs.meta.outputs.PLONE_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-builder
dockerfile: Dockerfile.builder
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
load: false
push: true
secrets:
ghcr-registry-username: ${{ github.actor }}
ghcr-registry-password: ${{ secrets.GITHUB_TOKEN }}
docker-registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
prod-conf-image:
uses: ./.github/workflows/image-release.yml
with:
plone-version: ${{ needs.meta.outputs.PLONE_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-prod-config
dockerfile: Dockerfile.prod
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
load: false
push: true
secrets:
ghcr-registry-username: ${{ github.actor }}
ghcr-registry-password: ${{ secrets.GITHUB_TOKEN }}
docker-registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
needs:
- meta
dev-image:
uses: ./.github/workflows/image-release.yml
with:
plone-version: ${{ needs.meta.outputs.PLONE_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-dev
dockerfile: Dockerfile.dev
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
load: false
push: true
secrets:
ghcr-registry-username: ${{ github.actor }}
ghcr-registry-password: ${{ secrets.GITHUB_TOKEN }}
docker-registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
needs:
- meta
- builder-image
acceptance-image:
uses: ./.github/workflows/image-release.yml
with:
plone-version: ${{ needs.meta.outputs.PLONE_VERSION }}
image-name: ${{ needs.meta.outputs.BASE_IMAGE_NAME }}-acceptance
dockerfile: Dockerfile.acceptance
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
load: false
push: true
secrets:
ghcr-registry-username: ${{ github.actor }}
ghcr-registry-password: ${{ secrets.GITHUB_TOKEN }}
docker-registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
needs:
- meta
- builder-image
- prod-conf-image
plone-backend:
uses: ./.github/workflows/image-release.yml
with:
plone-version: ${{ needs.meta.outputs.PLONE_VERSION }}
image-name: |
ghcr.io/plone/server
ghcr.io/plone/plone-backend
plone/plone-backend
dockerfile: Dockerfile
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
load: false
push: true
secrets:
ghcr-registry-username: ${{ github.actor }}
ghcr-registry-password: ${{ secrets.GITHUB_TOKEN }}
docker-registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
needs:
- meta
- builder-image
- prod-conf-image
plone-classicui:
uses: ./.github/workflows/image-release.yml
with:
plone-version: ${{ needs.meta.outputs.PLONE_VERSION }}
image-name: |
ghcr.io/plone/plone-classicui
plone/plone-classicui
dockerfile: Dockerfile.classicui
platforms: ${{ needs.meta.outputs.PLATFORMS }}
is-latest: ${{ needs.meta.outputs.IS_LATEST == 'true' }}
load: false
push: true
secrets:
ghcr-registry-username: ${{ github.actor }}
ghcr-registry-password: ${{ secrets.GITHUB_TOKEN }}
docker-registry-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
needs:
- meta
- builder-image
- prod-conf-image