Skip to content

fix: update php-component to fix empty at setName() #193

fix: update php-component to fix empty at setName()

fix: update php-component to fix empty at setName() #193

Workflow file for this run

name: GitHub Actions
on: [push]
env:
APP_IMAGE: keboola/db-extractor-mssql
KBC_DEVELOPERPORTAL_VENDOR: "keboola"
KBC_DEVELOPERPORTAL_APP: "keboola.ex-db-mssql"
KBC_DEVELOPERPORTAL_USERNAME: "keboola+github_actions_ex_db_mssql"
KBC_DEVELOPERPORTAL_PASSWORD: ${{ secrets.KBC_DEVELOPERPORTAL_PASSWORD }}
DOCKERHUB_USER: "keboolabot"
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
KBC_TEST_PROJECT_URL: "https://connection.keboola.com/admin/projects/2703/dashboard"
KBC_STORAGE_TOKEN: ${{ secrets.KBC_STORAGE_TOKEN }}
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Print Docker version
run: |
docker -v
- name: Build image and run tests
run: |
docker build -t $APP_IMAGE .
docker-compose run --rm wait
docker-compose run --rm app
- 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: Run KBC test jobs
run: |
docker run --rm -e KBC_STORAGE_TOKEN quay.io/keboola/syrup-cli:latest run-job keboola.ex-db-mssql 287615945 test
docker run --rm -e KBC_STORAGE_TOKEN quay.io/keboola/syrup-cli:latest run-job keboola.ex-db-mssql 287628364 test
- name: Deploy
if: startsWith(github.ref, 'refs/tags/')
run: ./deploy.sh