Skip to content

Commit 53bc3d0

Browse files
authored
ci: fix typo in extracting metadata (#64)
Signed-off-by: Aubin Lambaré <aubin.lambare@cs-soprasteria.com>
1 parent a4c8993 commit 53bc3d0

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/package.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,20 @@ jobs:
2929
with:
3030
activate-environment: "true"
3131

32-
- name: Install dependencies
33-
run: uv pip install ".[server,telemetry]"
34-
3532
- name: Determine the container tag and labels
3633
id: container_tag
3734
run: |
3835
APP_VERSION=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
3936
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
4037
41-
EODAG_VERSION=$(PYTHONWARNINGS="ignore::SyntaxWarning" uv run --active python -c "import eodag; print(eodag.__version__)")
42-
echo "EODAG_VERSION=$EODAG_VERSION" >> $GITHUB_ENV
43-
4438
# Default: branch name
4539
CONTAINER_TAG=${GITHUB_REF##*/}
4640
4741
# Check if this is a release or eodag dispatch
4842
if [[ "${GITHUB_REF_TYPE}" == "tag" || ( "${GITHUB_EVENT_NAME}" == "repository_dispatch" && "${GITHUB_EVENT_CLIENT_PAYLOAD_TYPE}" == "release" ) ]]; then
43+
uv pip install ".[server,telemetry]"
44+
EODAG_VERSION=$(PYTHONWARNINGS="ignore::SyntaxWarning" uv run --active python -c "import eodag; print(eodag.__version__)")
45+
echo "EODAG_VERSION=$EODAG_VERSION" >> $GITHUB_ENV
4946
CONTAINER_TAG="${APP_VERSION}-eodag-${EODAG_VERSION}"
5047
fi
5148
@@ -67,7 +64,7 @@ jobs:
6764
with:
6865
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6966
tags: |
70-
custom=stac-fastapi-eodag:${{ env.CONTAINER_TAG }}
67+
type=raw,value=${{ env.CONTAINER_TAG }}
7168
labels: |
7269
org.opencontainers.image.title=stac-fastapi-eodag
7370
org.opencontainers.image.description=A STAC FastAPI backend using EODAG

0 commit comments

Comments
 (0)