From 1043bab47e4678fe429c61d198515483331709c5 Mon Sep 17 00:00:00 2001 From: Alejandro Alvarez Date: Mon, 12 Feb 2024 14:07:00 +0100 Subject: [PATCH] chore(create-release.yml): update version of sonar-push.yml to v0.6.2 for better compatibility (#157) chore(extension-attach-artifact-release.yml): update version of get_draft_release.sh, sign_artifact.sh, and upload_asset.sh to v0.6.2 for better compatibility chore(extension-release-prepare.yml): update version of extension-release-rollback.yml to v0.6.2 for better compatibility chore(extension-release-published.yml): update version of extension-release-prepare.yml to v0.6.2 for better compatibility chore(os-extension-test.yml): update version of sonar-pull-request.yml to v0.6.2 for better compatibility chore(package-linux.yml): update version of package-deb-pom.xml and sign_artifact.sh to v0.6.2 for better compatibility chore(pom-release-published.yml): update version of extension-release-prepare.yml to v0.6.2 for better compatibility chore(pro-extension-test.yml): update version of sonar-pull-request.yml to v0.6.2 for better compatibility --- .github/workflows/create-release.yml | 2 +- .../extension-attach-artifact-release.yml | 8 ++++---- .../workflows/extension-release-prepare.yml | 2 +- .../workflows/extension-release-published.yml | 18 +++++++++--------- .github/workflows/os-extension-test.yml | 2 +- .github/workflows/package-linux.yml | 10 +++++----- .github/workflows/pom-release-published.yml | 2 +- .github/workflows/pro-extension-test.yml | 2 +- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index e7d855e3..6822ccaf 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -11,7 +11,7 @@ on: jobs: sonar: - uses: liquibase/build-logic/.github/workflows/sonar-push.yml@v0.6.1 + uses: liquibase/build-logic/.github/workflows/sonar-push.yml@v0.6.2 secrets: inherit with: extraCommand: ${{ inputs.extraCommand }} diff --git a/.github/workflows/extension-attach-artifact-release.yml b/.github/workflows/extension-attach-artifact-release.yml index 859702a0..80f52447 100644 --- a/.github/workflows/extension-attach-artifact-release.yml +++ b/.github/workflows/extension-attach-artifact-release.yml @@ -84,9 +84,9 @@ jobs: - name: Get Reusable Script Files run: | - curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.1/.github/get_draft_release.sh - curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.1/.github/sign_artifact.sh - curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.1/.github/upload_asset.sh + curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.2/.github/get_draft_release.sh + curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.2/.github/sign_artifact.sh + curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.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 @@ -175,7 +175,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.6.1/.github/upload_zip.sh + curl -o $PWD/.github/upload_zip.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.2/.github/upload_zip.sh chmod +x $PWD/.github/upload_zip.sh - name: Attach Zip File to Draft Release diff --git a/.github/workflows/extension-release-prepare.yml b/.github/workflows/extension-release-prepare.yml index f8690e09..96163b74 100644 --- a/.github/workflows/extension-release-prepare.yml +++ b/.github/workflows/extension-release-prepare.yml @@ -107,7 +107,7 @@ jobs: release-rollback: needs: prepare-release if: ${{ always() && contains(needs.*.result, 'failure') }} - uses: liquibase/build-logic/.github/workflows/extension-release-rollback.yml@v0.6.1 + uses: liquibase/build-logic/.github/workflows/extension-release-rollback.yml@v0.6.2 secrets: inherit with: extraCommand: ${{ inputs.extraCommand }} diff --git a/.github/workflows/extension-release-published.yml b/.github/workflows/extension-release-published.yml index e6960efa..c232b0db 100644 --- a/.github/workflows/extension-release-published.yml +++ b/.github/workflows/extension-release-published.yml @@ -23,7 +23,7 @@ on: jobs: maven-release: - uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.6.1 + uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.6.2 secrets: inherit with: extraCommand: ${{ inputs.extraCommand }} @@ -157,19 +157,19 @@ jobs: path: ${{ github.event.repository.name }} repository: "liquibase/${{ github.event.repository.name }}" + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.AWS_PROD_GITHUB_OIDC_ROLE_ARN_BUILD_LOGIC }} + aws-region: us-east-1 + - name: Upload to s3 - env: - AWS_ACCESS_KEY_ID: ${{ secrets.LIQUIBASEORIGIN_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.LIQUIBASEORIGIN_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-east-1 # aws s3 sync syncs directories and S3 prefixes. run: | aws s3 sync ${{ github.event.repository.name }}/src/main/resources/www.liquibase.org/xml/ns/${{ inputs.nameSpace }}/ s3://liquibaseorg-origin/xml/ns/${{ inputs.nameSpace }}/ --content-type application/octet-stream --only-show-errors + - name: Index.htm file upload - env: - AWS_ACCESS_KEY_ID: ${{ secrets.LIQUIBASEORIGIN_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.LIQUIBASEORIGIN_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-east-1 # List all xsd and htm files in repository. Copy index.htm to temporary folder # Add links for all xsd files to index.htm file (except liquibase-${{ inputs.nameSpace }}-latest.xsd and index.htm) # Sync index.htm with the s3 diff --git a/.github/workflows/os-extension-test.yml b/.github/workflows/os-extension-test.yml index ac4a9a32..942f22b4 100644 --- a/.github/workflows/os-extension-test.yml +++ b/.github/workflows/os-extension-test.yml @@ -203,7 +203,7 @@ jobs: sonar-pr: if: ${{ !inputs.nightly }} needs: [ unit-test ] - uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.6.1 + uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.6.2 secrets: inherit with: extraCommand: ${{ inputs.extraCommand }} diff --git a/.github/workflows/package-linux.yml b/.github/workflows/package-linux.yml index 66aa7f7e..b8e6a5ea 100644 --- a/.github/workflows/package-linux.yml +++ b/.github/workflows/package-linux.yml @@ -61,11 +61,11 @@ 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.6.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.6.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.6.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.6.1/.github/package-deb-pom.xml - curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.1/.github/sign_artifact.sh + curl -o $PWD/.github/src/${{ inputs.artifactId }}/deb/control/control https://raw.githubusercontent.com/liquibase/build-logic/v0.6.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.6.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.6.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.6.2/.github/package-deb-pom.xml + curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.6.2/.github/sign_artifact.sh chmod +x $PWD/.github/sign_artifact.sh - name: Import GPG key diff --git a/.github/workflows/pom-release-published.yml b/.github/workflows/pom-release-published.yml index af6545a3..927375ed 100644 --- a/.github/workflows/pom-release-published.yml +++ b/.github/workflows/pom-release-published.yml @@ -68,5 +68,5 @@ jobs: maven-release: needs: release - uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.6.1 + uses: liquibase/build-logic/.github/workflows/extension-release-prepare.yml@v0.6.2 secrets: inherit \ No newline at end of file diff --git a/.github/workflows/pro-extension-test.yml b/.github/workflows/pro-extension-test.yml index 08d7dbd3..637de1ea 100644 --- a/.github/workflows/pro-extension-test.yml +++ b/.github/workflows/pro-extension-test.yml @@ -263,7 +263,7 @@ jobs: sonar-pr: if: ${{ !inputs.nightly }} needs: [ unit-test ] - uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.6.1 + uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.6.2 secrets: inherit with: extraCommand: ${{ inputs.extraCommand }}