Skip to content

[feat] Generate filename prefix from ROW definition #13

[feat] Generate filename prefix from ROW definition

[feat] Generate filename prefix from ROW definition #13

Workflow file for this run

name: Build & Test
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
env:
APP_IMAGE: keboola-component
KBC_DEVELOPERPORTAL_USERNAME: ${{ secrets.KBC_DEVELOPERPORTAL_USERNAME }}
KBC_DEVELOPERPORTAL_PASSWORD: ${{ secrets.KBC_DEVELOPERPORTAL_PASSWORD }}
KBC_DEVELOPERPORTAL_VENDOR: ${{ secrets.KBC_DEVELOPERPORTAL_VENDOR }}
KBC_DEVELOPERPORTAL_APP: ${{ secrets.KBC_DEVELOPERPORTAL_APP }}
steps:
- uses: actions/checkout@v2
- name: Build image
run: docker build . --tag=$APP_IMAGE
- name: Run Flake Lint
run: docker run $APP_IMAGE flake8 /code/ --config=/code/flake8.cfg
- name: Unit Test
run: docker run $APP_IMAGE python -m unittest discover
- name: Set tag env
run: echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
# Push test tag, uncomment to enable
# - name: Push test image
# uses: odinuv/action-push-to-ecr@master
# with:
# vendor: ${{ secrets.KBC_DEVELOPERPORTAL_VENDOR }}
# app_id: ${{ secrets.KBC_DEVELOPERPORTAL_APP }}
# username: ${{ secrets.KBC_DEVELOPERPORTAL_USERNAME }}
# password: ${{ secrets.KBC_DEVELOPERPORTAL_PASSWORD }}
# tag: test
# push_latest: true
# source_image: keboola-component