Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed github action error on publishing the container when merging to… #632

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
- develop
- 'release/*'
- main-temp

tags:
- '*'
Expand All @@ -15,6 +16,7 @@ on:
- main
- develop
- 'release/*'
- main-temp

env:
MAIN_REPO: IN-CORE/pyincore
Expand Down Expand Up @@ -42,7 +44,7 @@ jobs:
BRANCH=${GITHUB_REF##*/}
fi
echo "GITHUB_BRANCH=${BRANCH}" >> $GITHUB_ENV
if [ "$BRANCH" == "main" ]; then
if [ "$BRANCH" == "main-temp" ]; then
version=$(awk -F= '/^release/ { print $2}' docs/source/conf.py | sed "s/[ ']//g")
tags="latest"
oldversion=""
Expand All @@ -51,6 +53,8 @@ jobs:
tags="${tags},${version}"
version=${version%.*}
done
# Remove any unwanted double quotes from tags
tags=$(echo $tags | sed 's/"//g')
echo "VERSION=${version}" >> $GITHUB_ENV
echo "TAGS=${tags}" >> $GITHUB_ENV
elif [ "$BRANCH" == "develop" ]; then
Expand All @@ -61,6 +65,10 @@ jobs:
echo "TAGS=${BRANCH}" >> $GITHUB_ENV
fi

# debug TAGS
- name: Debug TAGS
run: echo "TAGS=${{ env.TAGS }}"

# build image
- name: Build image
uses: elgohr/Publish-Docker-Github-Action@3.04
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Fixed
- Documentation container tagging error by github action [#631](https://github.com/IN-CORE/pyincore/issues/631)

## [1.20.1] - 2024-11-01

### Fixed
Expand Down
Loading