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 CI for PocketIDP #44

Merged
merged 1 commit into from
Aug 20, 2024
Merged
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
12 changes: 9 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency: ${{ github.ref }}
env:
IMAGE: backstage
HUMCTL_VERSION: '*'
HUMANITEC_APP_ID: backstage
SCORE_FILE: score.yaml
DEPLOYMENT_ENV: development
# CLOUD_PROVIDER: aws
AWS_REGION: ${{ vars.AWS_REGION }}
AWS_ROLE_ARN: ${{ vars.AWS_ROLE_ARN }}
Expand Down Expand Up @@ -108,6 +111,9 @@ jobs:
name: define registry
run: |
echo "CONTAINER_REGISTRY=localhost:5001" >> "$GITHUB_ENV"
echo "HUMANITEC_APP_ID=${{ vars.HUMANITEC_APP_ID }}" >> "$GITHUB_ENV"
echo "SCORE_FILE=score.5min.yaml" >> "$GITHUB_ENV"
echo "DEPLOYMENT_ENV=5min-local" >> "$GITHUB_ENV"

- name: Set Tag with SHA
run: echo "TAG=`echo $GITHUB_SHA | cut -c 1-7`" >> $GITHUB_ENV
Expand Down Expand Up @@ -140,9 +146,9 @@ jobs:
humctl score deploy \
--token ${{ secrets.HUMANITEC_TOKEN }} \
--org ${{ vars.HUMANITEC_ORG_ID }} \
--app backstage \
--env development \
-f score.yaml \
--app ${{ env.HUMANITEC_APP_ID }} \
--env ${{ env.DEPLOYMENT_ENV }} \
-f ${{ env.SCORE_FILE }} \
--extensions humanitec.score.yaml \
--workload-source-url "https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/score.yaml" \
--image $CONTAINER_REGISTRY/$IMAGE:$TAG \
Expand Down