use concatenation #107
Workflow file for this run
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 | |
on: | |
push | |
env: | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare env | |
run: cp .env.dist .env | |
- name: Build container | |
run: docker-compose build app | |
- name: Run tests | |
run: docker-compose run --rm app ./vendor/bin/phpcs --standard=psr2 --ignore=vendor -n . | |
- name: Push | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
docker login -u=keboolacipush -p="$DOCKERHUB_TOKEN" | |
docker tag keboola/cli-utils keboola/cli-utils:$GITHUB_REF_NAME | |
docker tag keboola/cli-utils keboola/cli-utils:latest | |
docker push keboola/cli-utils:$GITHUB_REF_NAME | |
docker push keboola/cli-utils:latest | |