drop unhandled organization status error #425
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build docker image | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- production | |
- staging | |
env: | |
PROJECT_ID: ${{ secrets.GCP_PROJECT }} | |
DOCKER_IMAGE: eu.gcr.io/${{ secrets.GCP_PROJECT }}/koyeb-console | |
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }} | |
jobs: | |
build-push: | |
name: Build and push docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure docker registry | |
run: | | |
echo "$GCP_CREDENTIALS" | base64 -d > "$HOME/gcp-key.json" | |
gcloud auth activate-service-account --key-file "$HOME/gcp-key.json" | |
gcloud --quiet config set project "$PROJECT_ID" | |
gcloud auth configure-docker | |
- name: Build docker image | |
run: | | |
docker build --rm=false \ | |
--build-arg ENVIRONMENT \ | |
--build-arg APP_VERSION \ | |
--build-arg API_URL \ | |
--build-arg AI_ASSISTANT_API_URL \ | |
--build-arg WEBSITE_URL \ | |
--build-arg PAGE_CONTEXT_BASE_URL \ | |
--build-arg IDENFY_SERVICE_BASE_URL \ | |
--build-arg RECAPTCHA_CLIENT_KEY \ | |
--build-arg POSTHOG_API_HOST \ | |
--build-arg POSTHOG_KEY \ | |
--build-arg STRIPE_PUBLIC_KEY \ | |
--build-arg MAPBOX_TOKEN \ | |
--build-arg INTERCOM_APP_ID \ | |
--build-arg SENTRY_AUTH_TOKEN \ | |
-t "$DOCKER_IMAGE:$GITHUB_SHA" . | |
env: | |
ENVIRONMENT: ${{ github.ref_name }} | |
APP_VERSION: ${{ github.sha }} | |
API_URL: | |
AI_ASSISTANT_API_URL: ${{ secrets.AI_ASSISTANT_API_URL }} | |
WEBSITE_URL: ${{ secrets.WEBSITE_URL }} | |
PAGE_CONTEXT_BASE_URL: ${{ secrets.PAGE_CONTEXT_BASE_URL }} | |
IDENFY_SERVICE_BASE_URL: ${{ secrets.IDENFY_SERVICE_BASE_URL }} | |
RECAPTCHA_CLIENT_KEY: ${{ secrets.RECAPTCHA_CLIENT_KEY }} | |
POSTHOG_API_HOST: ${{ secrets.POSTHOG_API_HOST }} | |
POSTHOG_KEY: ${{ secrets.POSTHOG_KEY }} | |
STRIPE_PUBLIC_KEY: ${{ secrets.STRIPE_PUBLIC_KEY }} | |
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }} | |
INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
- name: Push docker image | |
run: | | |
REF_NAME=${{ github.ref_name }} | |
SHORT_SHA1="${GITHUB_SHA:0:7}" | |
DATE=$(date +%s) | |
docker tag "$DOCKER_IMAGE:$GITHUB_SHA" "$DOCKER_IMAGE:$REF_NAME-$SHORT_SHA1-$DATE" | |
docker tag "$DOCKER_IMAGE:$GITHUB_SHA" "$DOCKER_IMAGE:$REF_NAME-latest" | |
docker push "$DOCKER_IMAGE:$GITHUB_SHA" | |
docker push "$DOCKER_IMAGE:$REF_NAME-$SHORT_SHA1-$DATE" | |
docker push "$DOCKER_IMAGE:$REF_NAME-latest" |