Skip to content

Commit

Permalink
Merge pull request #83 from liquibase/DAT-4596
Browse files Browse the repository at this point in the history
feat(generate.yml): add GitHub Actions workflow to generate liquibase…
  • Loading branch information
jandroav authored Mar 4, 2024
2 parents d9bed1b + fedfb3f commit f2bb80e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/generate.yml
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
10 changes: 10 additions & 0 deletions Dockerfile
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

0 comments on commit f2bb80e

Please sign in to comment.