forked from pablodenadai/node-liquibase
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from liquibase/DAT-4596
feat(generate.yml): add GitHub Actions workflow to generate liquibase…
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Generate Action | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
liquibase-version: | ||
description: 'Liquibase version' | ||
required: true | ||
default: '4.26.0' | ||
|
||
jobs: | ||
create-command-list: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build liquibase-protobuf-generator | ||
run: docker build -t liquibase-protobuf-generator:{{ inputs.liquibase-version }} . --build-arg VERSION={{ inputs.liquibase-version }} | ||
|
||
- name: Generate liquibase commands | ||
run: docker run --rm -v $(PWD):/proto liquibase-protobuf-generator:$(VERSION) --output-file=commands.json list-commands | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: commands-$LIQUIBASE_VERSION | ||
path: commands.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ARG VERSION | ||
FROM liquibase/liquibase:$VERSION | ||
|
||
USER root | ||
RUN mkdir /proto && chown liquibase /proto | ||
VOLUME /proto | ||
WORKDIR /proto | ||
USER liquibase | ||
|
||
RUN lpm update && lpm add [email protected] --global |