Skip to content

Commit 4372025

Browse files
authored
Merge branch 'main' into feature/spark313_upgrade
2 parents 050665b + 4f25eaa commit 4372025

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1302
-735
lines changed

.github/workflows/docker-publish.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build and publish to docker repo
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'src/**'
10+
- 'pom.xml'
11+
- 'Dockerfile'
12+
- 'LICENSE.md'
13+
tags:
14+
- 'v*.*.*'
15+
- 'v*.*.*-*'
16+
17+
jobs:
18+
build_and_publish:
19+
name: Build and publish docker image
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Check out source code
23+
uses: actions/checkout@v3
24+
# Setup metadata based on the commit/tag that will be used for tagging the image
25+
- name: Setup Docker meta
26+
id: meta
27+
uses: docker/metadata-action@v3
28+
with:
29+
images: |
30+
datastax/cassandra-data-migrator
31+
flavor: |
32+
latest=auto
33+
tags: |
34+
type=ref,event=branch
35+
type=semver,pattern={{version}}
36+
type=semver,pattern={{major}}.{{minor}}.x
37+
type=semver,pattern={{major}}.x
38+
- name: Set up Docker Buildx
39+
uses: docker/setup-buildx-action@v1
40+
- name: Login to DockerHub
41+
uses: docker/login-action@v1
42+
with:
43+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
44+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
45+
- name: Build and push
46+
id: docker_build
47+
uses: docker/build-push-action@v2
48+
with:
49+
file: Dockerfile
50+
context: .
51+
push: true
52+
tags: ${{ steps.meta.outputs.tags }}
53+
platforms: linux/amd64
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and publish commit release to docker repo
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build_and_publish:
7+
name: Build and publish docker image
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out source code
11+
uses: actions/checkout@v3
12+
# Setup metadata based on the commit/tag that will be used for tagging the image
13+
# Only build and publish a commit based tag
14+
- name: Setup Docker meta
15+
id: meta
16+
uses: docker/metadata-action@v3
17+
with:
18+
images: |
19+
datastax/cassandra-data-migrator
20+
flavor: |
21+
latest=false
22+
tags: |
23+
type=sha
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v1
26+
- name: Login to DockerHub
27+
uses: docker/login-action@v1
28+
with:
29+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
30+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
31+
- name: Build and push
32+
id: docker_build
33+
uses: docker/build-push-action@v2
34+
with:
35+
file: Dockerfile
36+
context: .
37+
push: true
38+
tags: ${{ steps.meta.outputs.tags }}
39+
platforms: linux/amd64

.github/workflows/maven-publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+
name: Maven Package
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up JDK 8
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: '8'
24+
distribution: 'temurin'
25+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
26+
settings-path: ${{ github.workspace }} # location for the settings.xml file
27+
28+
- name: Build with Maven
29+
run: mvn -B package --file pom.xml
30+
31+
- name: Publish to GitHub Packages Apache Maven
32+
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
33+
env:
34+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/maven.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Java CI with Maven
10+
11+
on: [push, pull_request]
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up JDK 8
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: '8'
24+
distribution: 'temurin'
25+
cache: maven
26+
- name: Build with Maven
27+
run: mvn -B package --file pom.xml
28+
29+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
30+
- name: Update dependency graph
31+
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
32+

.idea/libraries/Maven__ch_qos_logback_logback_classic_1_1_3.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.idea/libraries/Maven__ch_qos_logback_logback_core_1_1_3.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_6_7.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_6_7.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.idea/libraries/Maven__org_antlr_ST4_4_0_4.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.idea/libraries/Maven__org_antlr_antlr_3_5_2.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)