Skip to content

Commit

Permalink
updated Github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
clausnagel committed Sep 2, 2024
1 parent 846195c commit ec4b16e
Show file tree
Hide file tree
Showing 7 changed files with 156 additions and 185 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/docker-build-edge-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
39 changes: 17 additions & 22 deletions .github/workflows/docker-build-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
56 changes: 25 additions & 31 deletions .github/workflows/docker-build-push-edge-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
54 changes: 24 additions & 30 deletions .github/workflows/docker-build-push-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
56 changes: 25 additions & 31 deletions .github/workflows/docker-build-push-release-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
54 changes: 24 additions & 30 deletions .github/workflows/docker-build-push-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
41 changes: 23 additions & 18 deletions .github/workflows/impexp-build.yml
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

0 comments on commit ec4b16e

Please sign in to comment.