Skip to content

fix: remove forgotten var_dump() #354

fix: remove forgotten var_dump()

fix: remove forgotten var_dump() #354

Workflow file for this run

name: GitHub Actions
on: [push]
env:
APP_IMAGE: keboola/google-analytics-extractor
CLIENT_ID: 1025566943657-ehdolnub9s0d0lfcrbgm8kgl1oep5o63.apps.googleusercontent.com
KBC_DEVELOPERPORTAL_APP: keboola.ex-google-analytics-v4
KBC_DEVELOPERPORTAL_USERNAME: keboola+ex_google_analytics_v4_github_actions
KBC_DEVELOPERPORTAL_VENDOR: keboola
VIEW_ID: 184062725
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
KBC_DEVELOPERPORTAL_PASSWORD: ${{ secrets.KBC_DEVELOPERPORTAL_PASSWORD }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
KBC_URL: "https://connection.keboola.com"
KBC_TOKEN: ${{ secrets.KBC_TOKEN }}
KBC_COMPONENTID: "keboola.ex-google-analytics-v4"
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Print Docker version
run: |
docker -v
- name: Build image and run tests
run: |
docker build -t $APP_IMAGE .
docker run -e KBC_DATA_TYPE_SUPPORT=none -e CLIENT_ID -e CLIENT_SECRET -e ACCESS_TOKEN -e REFRESH_TOKEN -e VIEW_ID -e KBC_URL -e KBC_TOKEN -e KBC_COMPONENTID $APP_IMAGE composer ci
- name: Push image to ECR
run: |
docker pull quay.io/keboola/developer-portal-cli-v2:latest
export REPOSITORY=`docker run --rm -e KBC_DEVELOPERPORTAL_USERNAME -e KBC_DEVELOPERPORTAL_PASSWORD -e KBC_DEVELOPERPORTAL_URL quay.io/keboola/developer-portal-cli-v2:latest ecr:get-repository $KBC_DEVELOPERPORTAL_VENDOR $KBC_DEVELOPERPORTAL_APP`
docker tag $APP_IMAGE:latest $REPOSITORY:test
eval $(docker run --rm -e KBC_DEVELOPERPORTAL_USERNAME -e KBC_DEVELOPERPORTAL_PASSWORD -e KBC_DEVELOPERPORTAL_URL quay.io/keboola/developer-portal-cli-v2:latest ecr:get-login $KBC_DEVELOPERPORTAL_VENDOR $KBC_DEVELOPERPORTAL_APP)
docker push $REPOSITORY:test
docker pull quay.io/keboola/syrup-cli:latest
- name: Deploy
if: startsWith(github.ref, 'refs/tags/')
run: ./deploy.sh