Skip to content

Commit

Permalink
Merge pull request #103 from slub/main
Browse files Browse the repository at this point in the history
Update stable
  • Loading branch information
markusweigelt authored Mar 11, 2024
2 parents 7184082 + a9f0912 commit 51389bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/release-stable-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,14 @@ name: Release Stable Pull Request
on:
# Allows you to run this workflow manually
workflow_dispatch:
inputs:
ocrd-all-version:
description: Stable tag of ocrd/all from stage for OCR-D Controller
required: true
ocrd-core-version:
description: Stable tag of ocrd/core from stage for OCR-D Manager
required: true

jobs:
build-pr:
runs-on: ubuntu-latest

steps:
- name: Checkout repository and submodules of stable branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: stable
submodules: recursive
Expand All @@ -34,11 +27,7 @@ jobs:
./.github/scripts/update-changelog.sh ${{ secrets.GITHUB_TOKEN }} ${{ env.release_version }}
# Update .env
sed -i 's|CONTROLLER_BASE_VERSION=maximum-cuda|CONTROLLER_BASE_VERSION=${{ github.event.inputs.ocrd-all-version }}|g' .env
sed -i 's|CONTROLLER_IMAGE=ghcr.io/slub/ocrd_controller:latest|CONTROLLER_IMAGE=ghcr.io/slub/ocrd_controller:stable|g' .env
sed -i 's|MANAGER_BASE_VERSION=latest|MANAGER_BASE_VERSION=${{ github.event.inputs.ocrd-core-version }}|g' .env
sed -i 's|MANAGER_IMAGE=ghcr.io/slub/ocrd_manager:latest|MANAGER_IMAGE=ghcr.io/slub/ocrd_manager:stable|g' .env
sed -i 's|MONITOR_IMAGE=ghcr.io/slub/ocrd_monitor:latest|MONITOR_IMAGE=ghcr.io/slub/ocrd_monitor:stable|g' .env
sed -i 's|:latest|:stable|g' .env
shell: bash

- name: Create Pull Request
Expand All @@ -47,15 +36,10 @@ jobs:
commit-message: changes-for-release
title: Release stable version ${{ env.release_version }}
body: |
## Autogenerated changes
- Update CHANGELOG.md
- Update .env
- Replace `CONTROLLER_BASE_VERSION` with `${{ github.event.inputs.ocrd-all-version }}`
- Replace `MANAGER_BASE_VERSION` with `${{ github.event.inputs.ocrd-core-version }}`
- Replace `latest` with `stable`
## Autogenerated changes (see "Files changed")
## Manual steps to provide new release ${{ env.release_version }}
- Navigate to https://github.com/slub/ocrd_kitodo/releases/new after PR is merged
## Manual steps to provide new release ${{ env.release_version }} after this PR is merged
- Navigate to https://github.com/slub/ocrd_kitodo/releases/new
- Choose a tag "${{ env.release_version }}" and create this as new tag
- Choose target "stable"
- Release title "Stable Version "${{ env.release_date }}" of the integration of OCR-D and Kitodo.Production"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Makefile CI
name: Test CI

on:
# Triggers the workflow on push and pull request events but only for pull_requests on the main branch
Expand Down
2 changes: 1 addition & 1 deletion _modules/ocrd_manager
Submodule ocrd_manager updated 3 files
+4 −0 Dockerfile
+4 −0 startup.sh
+182 −0 wait-for-it.sh

0 comments on commit 51389bb

Please sign in to comment.