fix(ci): refactor to custom action #29
This file contains hidden or 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: Deploy DBT image | ||
| permissions: | ||
| contents: read | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - "dbt/**" | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| jobs: | ||
| tag: | ||
| name: Set deployment tag | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| value: ${{ steps.set_tag.outputs.value }} | ||
| steps: | ||
| - id: set_tag | ||
| run: echo "value=$(date +'%F.%H%M')" >> $GITHUB_OUTPUT | ||
| build: | ||
| needs: tag | ||
| name: Build dbt tool | ||
| uses: ./.github/actions/build-image | ||
| with: | ||
| name: dbt | ||
| context: ./dbt | ||
| tag: ${{ needs.tag.outputs.value }} | ||
| dockerfile: ./docker/dbt/prod/Dockerfile | ||