Skip to content

Commit ec4b16e

Browse files
committed
updated Github workflows
1 parent 846195c commit ec4b16e

7 files changed

+156
-185
lines changed

.github/workflows/docker-build-edge-alpine.yml

+18-23
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,21 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
-
13-
name: Parse short sha
14-
uses: benjlevesque/short-sha@v1.2
15-
id: short-sha
16-
-
17-
name: Checkout repo
18-
uses: actions/checkout@v2.4.0
19-
-
20-
name: Build and push image
21-
id: docker_build
22-
uses: docker/build-push-action@v2.9.0
23-
with:
24-
push: false
25-
file: Dockerfile.alpine
26-
tags: 3dcitydb/impexp:edge-alpine
27-
build-args: |
28-
IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }}
29-
-
30-
name: Image digest
31-
run: echo ${{ steps.docker_build.outputs.digest }}
32-
-
33-
name: Run container
34-
run: docker run -t --rm 3dcitydb/impexp:edge-alpine help | grep -i -E "Usage:"
12+
- name: Parse short sha
13+
uses: benjlevesque/short-sha@v3.0
14+
id: short-sha
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
- name: Build and push image
18+
id: docker_build
19+
uses: docker/build-push-action@v6
20+
with:
21+
push: false
22+
file: Dockerfile.alpine
23+
tags: 3dcitydb/impexp:edge-alpine
24+
build-args: |
25+
IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }}
26+
- name: Image digest
27+
run: echo ${{ steps.docker_build.outputs.digest }}
28+
- name: Run container
29+
run: docker run -t --rm 3dcitydb/impexp:edge-alpine help | grep -i -E "Usage:"

.github/workflows/docker-build-edge.yml

+17-22
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,20 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
-
13-
name: Parse short sha
14-
uses: benjlevesque/short-sha@v2.2
15-
id: short-sha
16-
-
17-
name: Checkout repo
18-
uses: actions/checkout@v4
19-
-
20-
name: Build and push image
21-
id: docker_build
22-
uses: docker/build-push-action@v5
23-
with:
24-
push: false
25-
tags: 3dcitydb/impexp:edge
26-
build-args: |
27-
IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }}
28-
-
29-
name: Image digest
30-
run: echo ${{ steps.docker_build.outputs.digest }}
31-
-
32-
name: Run container
33-
run: docker run -t --rm 3dcitydb/impexp:edge help | grep -i -E "Usage:"
12+
- name: Parse short sha
13+
uses: benjlevesque/short-sha@v3.0
14+
id: short-sha
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
- name: Build and push image
18+
id: docker_build
19+
uses: docker/build-push-action@v6
20+
with:
21+
push: false
22+
tags: 3dcitydb/impexp:edge
23+
build-args: |
24+
IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }}
25+
- name: Image digest
26+
run: echo ${{ steps.docker_build.outputs.digest }}
27+
- name: Run container
28+
run: docker run -t --rm 3dcitydb/impexp:edge help | grep -i -E "Usage:"

.github/workflows/docker-build-push-edge-alpine.yml

+25-31
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,35 @@ name: docker-build-push-edge-alpine
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77

88
jobs:
99
build:
1010

1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
-
15-
name: Parse short sha
16-
uses: benjlevesque/short-sha@v1.2
17-
id: short-sha
18-
-
19-
name: Checkout repo
20-
uses: actions/checkout@v2.4.0
21-
-
22-
name: Docker login
23-
id: docker_login
24-
uses: docker/login-action@v1.12.0
25-
with:
26-
username: ${{ secrets.DOCKERHUB_USERNAME }}
27-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
28-
-
29-
name: Build and push image
30-
id: docker_build
31-
uses: docker/build-push-action@v2.9.0
32-
with:
33-
push: true
34-
file: Dockerfile.alpine
35-
tags: 3dcitydb/impexp:edge-alpine
36-
build-args: |
37-
IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }}
38-
-
39-
name: Image digest
40-
run: echo ${{ steps.docker_build.outputs.digest }}
41-
-
42-
name: Run container
43-
run: docker run -t --rm 3dcitydb/impexp:edge-alpine help | grep -i -E "Usage:"
14+
- name: Parse short sha
15+
uses: benjlevesque/short-sha@v3.0
16+
id: short-sha
17+
- name: Checkout repo
18+
uses: actions/checkout@v4
19+
- name: Docker login
20+
id: docker_login
21+
uses: docker/login-action@v3
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
25+
- name: Build and push image
26+
id: docker_build
27+
uses: docker/build-push-action@v6
28+
with:
29+
push: true
30+
file: Dockerfile.alpine
31+
tags: 3dcitydb/impexp:edge-alpine
32+
build-args: |
33+
IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }}
34+
- name: Image digest
35+
run: echo ${{ steps.docker_build.outputs.digest }}
36+
- name: Run container
37+
run: docker run -t --rm 3dcitydb/impexp:edge-alpine help | grep -i -E "Usage:"

.github/workflows/docker-build-push-edge.yml

+24-30
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,34 @@ name: docker-build-push-edge
33
on:
44
push:
55
branches:
6-
- master
6+
- master
77

88
jobs:
99
build:
1010

1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
-
15-
name: Parse short sha
16-
uses: benjlevesque/short-sha@v2.2
17-
id: short-sha
18-
-
19-
name: Checkout repo
20-
uses: actions/checkout@v4
21-
-
22-
name: Docker login
23-
id: docker_login
24-
uses: docker/login-action@v2
25-
with:
26-
username: ${{ secrets.DOCKERHUB_USERNAME }}
27-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
28-
-
29-
name: Build and push image
30-
id: docker_build
31-
uses: docker/build-push-action@v5
32-
with:
33-
push: true
34-
tags: 3dcitydb/impexp:edge
35-
build-args: |
36-
IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }}
37-
-
38-
name: Image digest
39-
run: echo ${{ steps.docker_build.outputs.digest }}
40-
-
41-
name: Run container
42-
run: docker run -t --rm 3dcitydb/impexp:edge help | grep -i -E "Usage:"
14+
- name: Parse short sha
15+
uses: benjlevesque/short-sha@v3.0
16+
id: short-sha
17+
- name: Checkout repo
18+
uses: actions/checkout@v4
19+
- name: Docker login
20+
id: docker_login
21+
uses: docker/login-action@v3
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
25+
- name: Build and push image
26+
id: docker_build
27+
uses: docker/build-push-action@v6
28+
with:
29+
push: true
30+
tags: 3dcitydb/impexp:edge
31+
build-args: |
32+
IMPEXP_VERSION=${{ steps.short-sha.outputs.sha }}
33+
- name: Image digest
34+
run: echo ${{ steps.docker_build.outputs.digest }}
35+
- name: Run container
36+
run: docker run -t --rm 3dcitydb/impexp:edge help | grep -i -E "Usage:"

.github/workflows/docker-build-push-release-alpine.yml

+25-31
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,35 @@ name: docker-build-push-release-alpine
22

33
on:
44
release:
5-
types: [released, edited]
5+
types: [ released, edited ]
66

77
jobs:
88
build:
99

1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
-
14-
name: Checkout repo
15-
uses: actions/checkout@v2.4.0
16-
-
17-
name: Get release version without v
18-
id: release_version
19-
uses: battila7/get-version-action@v2.2.1
20-
-
21-
name: Docker login
22-
id: docker_login
23-
uses: docker/login-action@v1.12.0
24-
with:
25-
username: ${{ secrets.DOCKERHUB_USERNAME }}
26-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
27-
-
28-
name: Build and push image
29-
id: docker_build
30-
uses: docker/build-push-action@v2.9.0
31-
with:
32-
push: true
33-
file: Dockerfile.alpine
34-
tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine,3dcitydb/impexp:latest-alpine
35-
build-args: |
36-
IMPEXP_VERSION=${{ steps.release_version.outputs.version }}
37-
-
38-
name: Image digest
39-
run: echo ${{ steps.docker_build.outputs.digest }}
40-
-
41-
name: Run container
42-
run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine help | grep -i -E "Usage:"
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
- name: Get release version without v
16+
id: release_version
17+
uses: battila7/get-version-action@v2
18+
- name: Docker login
19+
id: docker_login
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
24+
- name: Build and push image
25+
id: docker_build
26+
uses: docker/build-push-action@v6
27+
with:
28+
push: true
29+
file: Dockerfile.alpine
30+
tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine,3dcitydb/impexp:latest-alpine
31+
build-args: |
32+
IMPEXP_VERSION=${{ steps.release_version.outputs.version }}
33+
- name: Image digest
34+
run: echo ${{ steps.docker_build.outputs.digest }}
35+
- name: Run container
36+
run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine help | grep -i -E "Usage:"

.github/workflows/docker-build-push-release.yml

+24-30
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,34 @@ name: docker-build-push-release
22

33
on:
44
release:
5-
types: [released, edited]
5+
types: [ released, edited ]
66

77
jobs:
88
build:
99

1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
-
14-
name: Checkout repo
15-
uses: actions/checkout@v2.4.0
16-
-
17-
name: Get release version without v
18-
id: release_version
19-
uses: battila7/get-version-action@v2.2.1
20-
-
21-
name: Docker login
22-
id: docker_login
23-
uses: docker/login-action@v1.12.0
24-
with:
25-
username: ${{ secrets.DOCKERHUB_USERNAME }}
26-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
27-
-
28-
name: Build and push image
29-
id: docker_build
30-
uses: docker/build-push-action@v2.9.0
31-
with:
32-
push: true
33-
tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }},3dcitydb/impexp:latest
34-
build-args: |
35-
IMPEXP_VERSION=${{ steps.release_version.outputs.version }}
36-
-
37-
name: Image digest
38-
run: echo ${{ steps.docker_build.outputs.digest }}
39-
-
40-
name: Run container
41-
run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }} help | grep -i -E "Usage:"
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
- name: Get release version without v
16+
id: release_version
17+
uses: battila7/get-version-action@v2
18+
- name: Docker login
19+
id: docker_login
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
24+
- name: Build and push image
25+
id: docker_build
26+
uses: docker/build-push-action@v6
27+
with:
28+
push: true
29+
tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }},3dcitydb/impexp:latest
30+
build-args: |
31+
IMPEXP_VERSION=${{ steps.release_version.outputs.version }}
32+
- name: Image digest
33+
run: echo ${{ steps.docker_build.outputs.digest }}
34+
- name: Run container
35+
run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }} help | grep -i -E "Usage:"

.github/workflows/impexp-build.yml

+23-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
name: impexp-build
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
3+
on: [ push, pull_request ]
84

95
jobs:
10-
build:
11-
12-
runs-on: ubuntu-latest
13-
6+
gradle:
7+
strategy:
8+
matrix:
9+
os: [ ubuntu-latest, windows-latest ]
10+
java: [ 17 ]
11+
distribution: [ temurin ]
12+
runs-on: ${{ matrix.os }}
1413
steps:
15-
- uses: actions/checkout@v2.4.0
16-
- name: Set up JDK 11
17-
uses: actions/setup-java@v1
18-
with:
19-
java-version: 11
20-
- name: Grant execute permission for gradlew
21-
run: chmod +x gradlew
22-
- name: Build with Gradle
23-
run: ./gradlew build
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Setup Java
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: ${{ matrix.distribution }}
20+
java-version: ${{ matrix.java }}
21+
- name: Setup Gradle
22+
uses: gradle/gradle-build-action@v2
23+
with:
24+
cache-disabled: true
25+
- name: Grant execute permission to Gradle
26+
run: chmod +x ./gradlew
27+
- name: Execute Gradle build
28+
run: ./gradlew build

0 commit comments

Comments
 (0)