Skip to content

Commit

Permalink
feat!(ci): remove push to dev
Browse files Browse the repository at this point in the history
"Für die Dev-Umgebung können wir Ihnen leider keine Credentials geben,
da alle Partner ausschließlich an die DEMO-Landschaft angebunden werden
sollen."
  • Loading branch information
hugotiburtino committed Oct 16, 2024
1 parent c06d761 commit b60c13a
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/datenraum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target_environment:
- demo
- dev

steps:
- uses: actions/checkout@v4

Expand All @@ -39,17 +36,8 @@ jobs:

- name: Set credentials for Datenraum
run: |
echo "DATENRAUM_ENVIRONMENT=${{ matrix.target_environment }}" >> "$GITHUB_ENV"
if [ "${{ matrix.target_environment }}" = "demo" ]; then
echo "CLIENT_ID=${{ secrets.CLIENT_ID_DEMO }}" >> "$GITHUB_ENV"
echo "CLIENT_SECRET=${{ secrets.CLIENT_SECRET_DEMO }}" >> "$GITHUB_ENV"
elif [ "${{ matrix.target_environment }}" = "dev" ]; then
echo "CLIENT_ID=${{ secrets.CLIENT_ID_DEV }}" >> "$GITHUB_ENV"
echo "CLIENT_SECRET=${{ secrets.CLIENT_SECRET_DEV }}" >> "$GITHUB_ENV"
else
echo "Target environment must be 'demo' or 'dev'"
exit 1
fi
echo "CLIENT_ID=${{ secrets.CLIENT_ID_DEMO }}" >> "$GITHUB_ENV"
echo "CLIENT_SECRET=${{ secrets.CLIENT_SECRET_DEMO }}" >> "$GITHUB_ENV"
- name: Download metadata from Datenraum
run: pipenv run python download_datenraum_nodes.py public/serlo-datenraum.json
Expand Down

0 comments on commit b60c13a

Please sign in to comment.