diff --git a/.github/workflows/docker-build-edge-alpine.yml b/.github/workflows/docker-build-edge-alpine.yml index f821a7a78..e15c71f75 100644 --- a/.github/workflows/docker-build-edge-alpine.yml +++ b/.github/workflows/docker-build-edge-alpine.yml @@ -9,26 +9,21 @@ jobs: runs-on: ubuntu-latest steps: - - - name: Parse short sha - uses: benjlevesque/short-sha@v1.2 - id: short-sha - - - name: Checkout repo - uses: actions/checkout@v2.4.0 - - - name: Build and push image - id: docker_build - uses: docker/build-push-action@v2.9.0 - with: - push: false - file: Dockerfile.alpine - tags: 3dcitydb/impexp:edge-alpine - build-args: | - IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }} - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} - - - name: Run container - run: docker run -t --rm 3dcitydb/impexp:edge-alpine help | grep -i -E "Usage:" + - name: Parse short sha + uses: benjlevesque/short-sha@v3.0 + id: short-sha + - name: Checkout repo + uses: actions/checkout@v4 + - name: Build and push image + id: docker_build + uses: docker/build-push-action@v6 + with: + push: false + file: Dockerfile.alpine + tags: 3dcitydb/impexp:edge-alpine + build-args: | + IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }} + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} + - name: Run container + run: docker run -t --rm 3dcitydb/impexp:edge-alpine help | grep -i -E "Usage:" diff --git a/.github/workflows/docker-build-edge.yml b/.github/workflows/docker-build-edge.yml index 870fa9368..bddce1c54 100644 --- a/.github/workflows/docker-build-edge.yml +++ b/.github/workflows/docker-build-edge.yml @@ -9,25 +9,20 @@ jobs: runs-on: ubuntu-latest steps: - - - name: Parse short sha - uses: benjlevesque/short-sha@v2.2 - id: short-sha - - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Build and push image - id: docker_build - uses: docker/build-push-action@v5 - with: - push: false - tags: 3dcitydb/impexp:edge - build-args: | - IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }} - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} - - - name: Run container - run: docker run -t --rm 3dcitydb/impexp:edge help | grep -i -E "Usage:" + - name: Parse short sha + uses: benjlevesque/short-sha@v3.0 + id: short-sha + - name: Checkout repo + uses: actions/checkout@v4 + - name: Build and push image + id: docker_build + uses: docker/build-push-action@v6 + with: + push: false + tags: 3dcitydb/impexp:edge + build-args: | + IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }} + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} + - name: Run container + run: docker run -t --rm 3dcitydb/impexp:edge help | grep -i -E "Usage:" diff --git a/.github/workflows/docker-build-push-edge-alpine.yml b/.github/workflows/docker-build-push-edge-alpine.yml index a92884276..d71beb827 100644 --- a/.github/workflows/docker-build-push-edge-alpine.yml +++ b/.github/workflows/docker-build-push-edge-alpine.yml @@ -3,7 +3,7 @@ name: docker-build-push-edge-alpine on: push: branches: - - master + - master jobs: build: @@ -11,33 +11,27 @@ jobs: runs-on: ubuntu-latest steps: - - - name: Parse short sha - uses: benjlevesque/short-sha@v1.2 - id: short-sha - - - name: Checkout repo - uses: actions/checkout@v2.4.0 - - - name: Docker login - id: docker_login - uses: docker/login-action@v1.12.0 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Build and push image - id: docker_build - uses: docker/build-push-action@v2.9.0 - with: - push: true - file: Dockerfile.alpine - tags: 3dcitydb/impexp:edge-alpine - build-args: | - IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }} - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} - - - name: Run container - run: docker run -t --rm 3dcitydb/impexp:edge-alpine help | grep -i -E "Usage:" + - name: Parse short sha + uses: benjlevesque/short-sha@v3.0 + id: short-sha + - name: Checkout repo + uses: actions/checkout@v4 + - name: Docker login + id: docker_login + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Build and push image + id: docker_build + uses: docker/build-push-action@v6 + with: + push: true + file: Dockerfile.alpine + tags: 3dcitydb/impexp:edge-alpine + build-args: | + IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }} + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} + - name: Run container + run: docker run -t --rm 3dcitydb/impexp:edge-alpine help | grep -i -E "Usage:" diff --git a/.github/workflows/docker-build-push-edge.yml b/.github/workflows/docker-build-push-edge.yml index 39e72abf6..9e7543037 100644 --- a/.github/workflows/docker-build-push-edge.yml +++ b/.github/workflows/docker-build-push-edge.yml @@ -3,7 +3,7 @@ name: docker-build-push-edge on: push: branches: - - master + - master jobs: build: @@ -11,32 +11,26 @@ jobs: runs-on: ubuntu-latest steps: - - - name: Parse short sha - uses: benjlevesque/short-sha@v2.2 - id: short-sha - - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Docker login - id: docker_login - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Build and push image - id: docker_build - uses: docker/build-push-action@v5 - with: - push: true - tags: 3dcitydb/impexp:edge - build-args: | - IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }} - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} - - - name: Run container - run: docker run -t --rm 3dcitydb/impexp:edge help | grep -i -E "Usage:" + - name: Parse short sha + uses: benjlevesque/short-sha@v3.0 + id: short-sha + - name: Checkout repo + uses: actions/checkout@v4 + - name: Docker login + id: docker_login + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Build and push image + id: docker_build + uses: docker/build-push-action@v6 + with: + push: true + tags: 3dcitydb/impexp:edge + build-args: | + IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }} + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} + - name: Run container + run: docker run -t --rm 3dcitydb/impexp:edge help | grep -i -E "Usage:" diff --git a/.github/workflows/docker-build-push-release-alpine.yml b/.github/workflows/docker-build-push-release-alpine.yml index f47097ec8..db8d39ec4 100644 --- a/.github/workflows/docker-build-push-release-alpine.yml +++ b/.github/workflows/docker-build-push-release-alpine.yml @@ -2,7 +2,7 @@ name: docker-build-push-release-alpine on: release: - types: [released, edited] + types: [ released, edited ] jobs: build: @@ -10,33 +10,27 @@ jobs: runs-on: ubuntu-latest steps: - - - name: Checkout repo - uses: actions/checkout@v2.4.0 - - - name: Get release version without v - id: release_version - uses: battila7/get-version-action@v2.2.1 - - - name: Docker login - id: docker_login - uses: docker/login-action@v1.12.0 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Build and push image - id: docker_build - uses: docker/build-push-action@v2.9.0 - with: - push: true - file: Dockerfile.alpine - tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine,3dcitydb/impexp:latest-alpine - build-args: | - IMPEXP_VERSION=${{ steps.release_version.outputs.version }} - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} - - - name: Run container - run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine help | grep -i -E "Usage:" + - name: Checkout repo + uses: actions/checkout@v4 + - name: Get release version without v + id: release_version + uses: battila7/get-version-action@v2 + - name: Docker login + id: docker_login + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Build and push image + id: docker_build + uses: docker/build-push-action@v6 + with: + push: true + file: Dockerfile.alpine + tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine,3dcitydb/impexp:latest-alpine + build-args: | + IMPEXP_VERSION=${{ steps.release_version.outputs.version }} + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} + - name: Run container + run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine help | grep -i -E "Usage:" diff --git a/.github/workflows/docker-build-push-release.yml b/.github/workflows/docker-build-push-release.yml index 960823c9c..8f94f467c 100644 --- a/.github/workflows/docker-build-push-release.yml +++ b/.github/workflows/docker-build-push-release.yml @@ -2,7 +2,7 @@ name: docker-build-push-release on: release: - types: [released, edited] + types: [ released, edited ] jobs: build: @@ -10,32 +10,26 @@ jobs: runs-on: ubuntu-latest steps: - - - name: Checkout repo - uses: actions/checkout@v2.4.0 - - - name: Get release version without v - id: release_version - uses: battila7/get-version-action@v2.2.1 - - - name: Docker login - id: docker_login - uses: docker/login-action@v1.12.0 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Build and push image - id: docker_build - uses: docker/build-push-action@v2.9.0 - with: - push: true - tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }},3dcitydb/impexp:latest - build-args: | - IMPEXP_VERSION=${{ steps.release_version.outputs.version }} - - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} - - - name: Run container - run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }} help | grep -i -E "Usage:" + - name: Checkout repo + uses: actions/checkout@v4 + - name: Get release version without v + id: release_version + uses: battila7/get-version-action@v2 + - name: Docker login + id: docker_login + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + - name: Build and push image + id: docker_build + uses: docker/build-push-action@v6 + with: + push: true + tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }},3dcitydb/impexp:latest + build-args: | + IMPEXP_VERSION=${{ steps.release_version.outputs.version }} + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} + - name: Run container + run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }} help | grep -i -E "Usage:" diff --git a/.github/workflows/impexp-build.yml b/.github/workflows/impexp-build.yml index 02a5813e1..2af80ee2c 100644 --- a/.github/workflows/impexp-build.yml +++ b/.github/workflows/impexp-build.yml @@ -1,23 +1,28 @@ name: impexp-build -on: - push: - branches: - - master - pull_request: +on: [ push, pull_request ] jobs: - build: - - runs-on: ubuntu-latest - + gradle: + strategy: + matrix: + os: [ ubuntu-latest, windows-latest ] + java: [ 17 ] + distribution: [ temurin ] + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2.4.0 - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: ${{ matrix.distribution }} + java-version: ${{ matrix.java }} + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + with: + cache-disabled: true + - name: Grant execute permission to Gradle + run: chmod +x ./gradlew + - name: Execute Gradle build + run: ./gradlew build