-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
118 additions
and
15 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
jobs: | ||
sonar: | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
secrets: inherit | ||
|
||
create-release: | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,11 @@ on: | |
required: false | ||
default: 'false' | ||
type: string | ||
extraCommand: | ||
description: 'Specify it if you want to run an extra command before attaching the artifact' | ||
required: false | ||
default: '' | ||
type: string | ||
secrets: | ||
BOT_TOKEN: | ||
description: 'BOT_TOKEN from the caller workflow' | ||
|
@@ -80,9 +85,9 @@ jobs: | |
- name: Get Reusable Script Files | ||
run: | | ||
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.1/.github/get_draft_release.sh | ||
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.1/.github/sign_artifact.sh | ||
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.1/.github/upload_asset.sh | ||
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.2/.github/get_draft_release.sh | ||
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.2/.github/sign_artifact.sh | ||
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.2/.github/upload_asset.sh | ||
chmod +x $PWD/.github/get_draft_release.sh | ||
chmod +x $PWD/.github/sign_artifact.sh | ||
chmod +x $PWD/.github/upload_asset.sh | ||
|
@@ -92,6 +97,11 @@ jobs: | |
git config user.name "liquibot" | ||
git config user.email "[email protected]" | ||
- name: Run extra command | ||
if: inputs.extraCommand != '' | ||
run: | | ||
${{ inputs.extraCommand }} | ||
- name: Build release artifacts | ||
id: build-release-artifacts | ||
run: | | ||
|
@@ -158,7 +168,7 @@ jobs: | |
- name: Get upload_zip.sh Script File | ||
if: inputs.zip == 'true' | ||
run: | | ||
curl -o $PWD/.github/upload_zip.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.1/.github/upload_zip.sh | ||
curl -o $PWD/.github/upload_zip.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.2/.github/upload_zip.sh | ||
chmod +x $PWD/.github/upload_zip.sh | ||
- name: Attach Zip File to Draft Release | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,12 @@ name: Prepare release | |
|
||
on: | ||
workflow_call: | ||
inputs: | ||
extraCommand: | ||
description: 'Specify it if you want to run an extra command before attaching the artifact' | ||
required: false | ||
default: '' | ||
type: string | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -75,6 +81,11 @@ jobs: | |
git config user.name "liquibot" | ||
git config user.email "[email protected]" | ||
- name: Run extra command | ||
if: inputs.extraCommand != '' | ||
run: | | ||
${{ inputs.extraCommand }} | ||
- name: Prepare Maven Release | ||
run: | | ||
mvn -B build-helper:parse-version release:clean release:prepare \ | ||
|
@@ -95,5 +106,7 @@ jobs: | |
release-rollback: | ||
needs: prepare-release | ||
if: ${{ always() && contains(needs.*.result, 'failure') }} | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
secrets: inherit | ||
with: | ||
extraCommand: ${{ inputs.extraCommand }} |
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 |
---|---|---|
|
@@ -2,6 +2,12 @@ name: Release Extension to Sonatype | |
|
||
on: | ||
workflow_call: | ||
inputs: | ||
extraCommand: | ||
description: 'Specify it if you want to run an extra command before attaching the artifact' | ||
required: false | ||
default: '' | ||
type: string | ||
secrets: | ||
SONATYPE_USERNAME: | ||
description: 'SONATYPE_USERNAME from the caller workflow' | ||
|
@@ -74,6 +80,11 @@ jobs: | |
git config user.name "liquibot" | ||
git config user.email "[email protected]" | ||
- name: Run extra command | ||
if: inputs.extraCommand != '' | ||
run: | | ||
${{ inputs.extraCommand }} | ||
- name: Build release artifacts | ||
id: build-release-artifacts | ||
run: | | ||
|
@@ -111,5 +122,7 @@ jobs: | |
maven-release: | ||
needs: release | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
secrets: inherit | ||
uses: liquibase/build-logic/.github/workflows/[email protected] | ||
secrets: inherit | ||
with: | ||
extraCommand: ${{ inputs.extraCommand }} |
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
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 |
---|---|---|
|
@@ -18,6 +18,11 @@ on: | |
required: false | ||
default: false | ||
type: boolean | ||
extraCommand: | ||
description: 'Specify it if you want to run an extra command before attaching the artifact' | ||
required: false | ||
default: '' | ||
type: string | ||
|
||
env: | ||
MAVEN_VERSION: '3.9.5' | ||
|
@@ -84,6 +89,11 @@ jobs: | |
} | ||
] | ||
- name: Run extra command | ||
if: inputs.extraCommand != '' | ||
run: | | ||
${{ inputs.extraCommand }} | ||
- name: Build and Package latest liquibase version | ||
if: ${{ inputs.nightly }} | ||
run: mvn -B dependency:go-offline clean package -DskipTests=true -Dliquibase.version=master-SNAPSHOT | ||
|
@@ -144,6 +154,11 @@ jobs: | |
name: ${{needs.build.outputs.artifact_id}}-artifacts | ||
path: ./target | ||
|
||
- name: Run extra command | ||
if: inputs.extraCommand != '' | ||
run: | | ||
${{ inputs.extraCommand }} | ||
- name: Run Tests | ||
run: mvn -B jacoco:prepare-agent surefire:test | ||
|
||
|
@@ -158,5 +173,7 @@ jobs: | |
sonar-pr: | ||
needs: [ unit-test ] | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
secrets: inherit | ||
with: | ||
extraCommand: ${{ inputs.extraCommand }} |
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 |
---|---|---|
|
@@ -54,10 +54,10 @@ jobs: | |
# Under the src folder is where specific packages files live. The GitHub action inputs will modify the universal package-deb-pom.xml to tell the process which assets to use during the packaging step | ||
mkdir -p $PWD/.github/src/${{ inputs.artifactId }}/deb/control | ||
mkdir -p $PWD/.github/src/${{ inputs.artifactId }}/main/archive | ||
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/control https://raw.githubusercontent.com/liquibase/build-logic/v0.5.1/src/${{ inputs.artifactId }}/deb/control/control | ||
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/postinst https://raw.githubusercontent.com/liquibase/build-logic/v0.5.1/src/${{ inputs.artifactId }}/deb/control/postinst | ||
curl -o $PWD/.github/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.1/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh | ||
curl -o $PWD/.github/package-deb-pom.xml https://raw.githubusercontent.com/liquibase/build-logic/v0.5.1/.github/package-deb-pom.xml | ||
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/control https://raw.githubusercontent.com/liquibase/build-logic/v0.5.2/src/${{ inputs.artifactId }}/deb/control/control | ||
curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/postinst https://raw.githubusercontent.com/liquibase/build-logic/v0.5.2/src/${{ inputs.artifactId }}/deb/control/postinst | ||
curl -o $PWD/.github/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.5.2/src/${{ inputs.artifactId }}/main/archive/${{ inputs.artifactId }}-env.sh | ||
curl -o $PWD/.github/package-deb-pom.xml https://raw.githubusercontent.com/liquibase/build-logic/v0.5.2/.github/package-deb-pom.xml | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
|
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 |
---|---|---|
|
@@ -68,5 +68,5 @@ jobs: | |
maven-release: | ||
needs: release | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -18,6 +18,11 @@ on: | |
required: false | ||
default: false | ||
type: boolean | ||
extraCommand: | ||
description: 'Specify it if you want to run an extra command before attaching the artifact' | ||
required: false | ||
default: '' | ||
type: string | ||
secrets: | ||
SONAR_TOKEN: | ||
description: 'SONAR_TOKEN from the caller workflow' | ||
|
@@ -102,6 +107,11 @@ jobs: | |
} | ||
] | ||
- name: Run extra command | ||
if: inputs.extraCommand != '' | ||
run: | | ||
${{ inputs.extraCommand }} | ||
- name: Build and Package latest liquibase version | ||
if: ${{ inputs.nightly }} | ||
run: mvn -B dependency:go-offline clean package -DskipTests=true -Dliquibase.version=master-SNAPSHOT | ||
|
@@ -202,6 +212,11 @@ jobs: | |
name: ${{needs.build.outputs.artifact_id}}-artifacts | ||
path: ./target | ||
|
||
- name: Run extra command | ||
if: inputs.extraCommand != '' | ||
run: | | ||
${{ inputs.extraCommand }} | ||
- name: Run Tests | ||
run: mvn -B jacoco:prepare-agent surefire:test | ||
|
||
|
@@ -216,5 +231,7 @@ jobs: | |
sonar-pr: | ||
needs: [ unit-test ] | ||
uses: liquibase/build-logic/.github/workflows/[email protected].1 | ||
uses: liquibase/build-logic/.github/workflows/[email protected].2 | ||
secrets: inherit | ||
with: | ||
extraCommand: ${{ inputs.extraCommand }} |
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
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