ClickHouse Migration Production #1
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: ClickHouse Migration Production | |
on: | |
workflow_call: | |
secrets: | |
CLICKHOUSE_URL: | |
required: true | |
workflow_dispatch: | |
jobs: | |
deploy: | |
environment: ClickHouse Production Migration | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install | |
uses: ./.github/actions/install | |
with: | |
go: true | |
- name: Install goose | |
run: go install github.com/pressly/goose/v3/cmd/goose@latest | |
- name: Migrate | |
run: goose clickhouse "${{ secrets.CLICKHOUSE_URL }}" up | |
working-directory: internal/clickhouse/schema |