Bump testcontainers to 2.0.2
#931
Workflow file for this run
This file contains hidden or 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: Deploy jars | |
| on: | |
| release: | |
| types: [created] | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| pull_request: | |
| branches: | |
| - main | |
| - release-* | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '11' | |
| - name: Import GPG Key | |
| if: github.event_name != 'pull_request' | |
| env: | |
| GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
| run: | | |
| echo "$GPG_PRIVATE_KEY" | gpg --batch --import | |
| echo "default-key $(gpg --list-keys --with-colons | grep pub | cut -d':' -f5)" >> ~/.gnupg/gpg.conf | |
| echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf | |
| - name: Generate settings.xml | |
| run: | | |
| mkdir -p ~/.m2 | |
| echo "<settings> | |
| <servers> | |
| <server> | |
| <id>github</id> | |
| <username>${{ github.actor }}</username> | |
| <password>${{ secrets.GITHUB_TOKEN }}</password> | |
| </server> | |
| ${{ secrets.MAVEN_SETTINGS_SERVER_CENTRAL }} | |
| </servers> | |
| </settings>" > ~/.m2/settings.xml | |
| - name: Download dependencies | |
| run: | | |
| mvn -B org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline de.qaware.maven:go-offline-maven-plugin:1.2.8:resolve-dependencies -Pci | |
| mvn -B -f flink-sql-runner/pom.xml org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources -Pci | |
| - name: Get project version and store in env | |
| run: | | |
| if [[ "${{ github.event_name }}" == "release" && "${{ github.event.action }}" == "created" ]]; then | |
| echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV | |
| else | |
| echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
| fi | |
| - name: Update version | |
| if: github.event_name == 'release' && github.event.action == 'created' | |
| run: | | |
| mvn -B versions:set -DnewVersion=${{ env.VERSION }} | |
| - name: Run Maven Build | |
| run: | | |
| if [[ "${{ github.event_name }}" == "release" ]]; then | |
| mvn -B clean deploy -Pci,release | |
| elif [[ "${{ github.ref_name }}" == "main" ]]; then | |
| mvn -B clean deploy -Pci | |
| else | |
| mvn -B clean install -Pci -Dgpg.skip=true | |
| fi |