-
Notifications
You must be signed in to change notification settings - Fork 56
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
1 parent
846195c
commit ec4b16e
Showing
7 changed files
with
156 additions
and
185 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 |
---|---|---|
|
@@ -9,26 +9,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Parse short sha | ||
uses: benjlevesque/[email protected] | ||
id: short-sha | ||
- | ||
name: Checkout repo | ||
uses: actions/[email protected] | ||
- | ||
name: Build and push image | ||
id: docker_build | ||
uses: docker/[email protected] | ||
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/[email protected] | ||
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:" |
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 |
---|---|---|
|
@@ -9,25 +9,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Parse short sha | ||
uses: benjlevesque/[email protected] | ||
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/[email protected] | ||
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:" |
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 |
---|---|---|
|
@@ -3,41 +3,35 @@ name: docker-build-push-edge-alpine | |
on: | ||
push: | ||
branches: | ||
- master | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Parse short sha | ||
uses: benjlevesque/[email protected] | ||
id: short-sha | ||
- | ||
name: Checkout repo | ||
uses: actions/[email protected] | ||
- | ||
name: Docker login | ||
id: docker_login | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
- | ||
name: Build and push image | ||
id: docker_build | ||
uses: docker/[email protected] | ||
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/[email protected] | ||
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:" |
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 |
---|---|---|
|
@@ -3,40 +3,34 @@ name: docker-build-push-edge | |
on: | ||
push: | ||
branches: | ||
- master | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Parse short sha | ||
uses: benjlevesque/[email protected] | ||
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/[email protected] | ||
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:" |
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,41 +2,35 @@ name: docker-build-push-release-alpine | |
|
||
on: | ||
release: | ||
types: [released, edited] | ||
types: [ released, edited ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout repo | ||
uses: actions/[email protected] | ||
- | ||
name: Get release version without v | ||
id: release_version | ||
uses: battila7/[email protected] | ||
- | ||
name: Docker login | ||
id: docker_login | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
- | ||
name: Build and push image | ||
id: docker_build | ||
uses: docker/[email protected] | ||
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:" |
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,40 +2,34 @@ name: docker-build-push-release | |
|
||
on: | ||
release: | ||
types: [released, edited] | ||
types: [ released, edited ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout repo | ||
uses: actions/[email protected] | ||
- | ||
name: Get release version without v | ||
id: release_version | ||
uses: battila7/[email protected] | ||
- | ||
name: Docker login | ||
id: docker_login | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
- | ||
name: Build and push image | ||
id: docker_build | ||
uses: docker/[email protected] | ||
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:" |
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 |
---|---|---|
@@ -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/[email protected] | ||
- 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 |