OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Update docker.yml
Cyril Rohr73cbfade54c7
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex d6dbf5d8d47..6dc6f637656 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -12,7 +12,7 @@ on:inputs:tag:description: "The tag to release. Note that this happens by default on the tag push. Only run this action when something went wrong!"- required: true+ required: falsepermissions:contents: read # to fetch code (actions/checkout)@@ -45,21 +45,31 @@ jobs:run: |if [[ ${{ github.event_name }} == 'push' ]]; thenTAG_REF=${GITHUB_REF#refs/tags/}+ CHECKOUT_REF=$GITHUB_REF+ elif [[ ${{ github.event_name }} == 'schedule' ]]; then+ TAG_REF=dev+ CHECKOUT_REF=refs/heads/develif [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; thenTAG_REF=${{ inputs.tag }}+ CHECKOUT_REF=${{ inputs.tag }}+ else+ echo "Unsupported event"+ exit 1+ fi++ if [ -z "$TAG_REF" ] || [ -z "$CHECKOUT_REF" ]; then+ echo "No TAG_REF or CHECKOUT_REF set. Aborting"+ exit 1fiVERSION=${TAG_REF#v}echo "Version: $VERSION"echo "::set-output name=version::$VERSION"- - name: Checkout current release- if: ${{ github.event_name == 'push' }}- uses: actions/checkout@v3- - name: Checkout specific version- if: ${{ github.event_name != 'push' }}+ echo "::set-output name=checkout_ref::$CHECKOUT_REF"+ - name: Checkoutwith:- ref: ${{ inputs.tag }}- uses: actions/checkout@v3+ ref: ${{ steps.extract_version.outputs.checkout_ref }}+ uses: actions/checkout@v4- name: Prepare docker filesrun: |cp ./docker/prod/Dockerfile ./Dockerfile