Skip to content

Commit e4a2aee

Browse files
authored
Merge pull request #2088 from atlanhq/dependencies
Bump dependencies
2 parents 41d807d + f76c1f9 commit e4a2aee

3 files changed

Lines changed: 48 additions & 8 deletions

File tree

.github/workflows/custom-package-container.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,19 @@ on:
1414
version:
1515
required: true
1616
type: string
17+
branch:
18+
required: false
19+
type: string
20+
default: ''
1721

1822
jobs:
1923
custom-package-container:
2024
runs-on: ubuntu-latest
2125
name: "${{inputs.package_name}} container"
2226
steps:
2327
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
28+
with:
29+
ref: ${{ inputs.branch != '' && inputs.branch || github.ref }}
2430
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
2531
- name: Log in to container registry
2632
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
@@ -39,13 +45,24 @@ jobs:
3945
with:
4046
name: "${{inputs.package_name}}-arm64"
4147
path: ./containers/custom-package/arm64/assembly
48+
- name: Determine image tags
49+
id: tags
50+
run: |
51+
if [ -n "${{ inputs.branch }}" ]; then
52+
# For manual runs with branch specified, use version and branch name (sanitized)
53+
BRANCH_NAME=$(echo "${{ inputs.branch }}" | sed 's/[^a-zA-Z0-9._-]/-/g')
54+
echo "tags=ghcr.io/atlanhq/csa-${{inputs.package_name}}:${{inputs.version}}-${BRANCH_NAME}" >> $GITHUB_OUTPUT
55+
else
56+
# For main branch pushes, use version and latest
57+
echo "tags=ghcr.io/atlanhq/csa-${{inputs.package_name}}:${{inputs.version}},ghcr.io/atlanhq/csa-${{inputs.package_name}}:latest" >> $GITHUB_OUTPUT
58+
fi
4259
- name: Build and publish container image
4360
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
4461
with:
4562
build-args: |
4663
VERSION=${{inputs.version}}
4764
PKG_NAME=${{inputs.package_name}}
4865
push: true
49-
tags: ghcr.io/atlanhq/csa-${{inputs.package_name}}:${{inputs.version}}, ghcr.io/atlanhq/csa-${{inputs.package_name}}:latest
66+
tags: ${{ steps.tags.outputs.tags }}
5067
context: ./containers/custom-package
5168
platforms: linux/amd64,linux/arm64

.github/workflows/merge.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ permissions:
77
on:
88
push:
99
branches: [main]
10+
workflow_dispatch:
11+
inputs:
12+
branch:
13+
description: 'Branch to build'
14+
required: true
15+
type: string
1016

1117
jobs:
1218
merge-build:
@@ -24,6 +30,8 @@ jobs:
2430
version: ${{ steps.get_version.outputs.version }}
2531
steps:
2632
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
33+
with:
34+
ref: ${{ github.event.inputs.branch || github.ref }}
2735
- uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
2836
with:
2937
java-version: 21
@@ -129,6 +137,7 @@ jobs:
129137
name: lambda-layer-${{ matrix.arch }}
130138
path: sdk/build/distributions/sdk-*.zip
131139
publish-docs:
140+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
132141
permissions:
133142
contents: write
134143
runs-on: ubuntu-latest
@@ -151,6 +160,7 @@ jobs:
151160
GRGIT_PASS: ${{ secrets.GITHUB_TOKEN }}
152161
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
153162
publish-snapshot:
163+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
154164
runs-on: ubuntu-latest
155165
name: "Snapshot"
156166
steps:
@@ -185,6 +195,8 @@ jobs:
185195
name: "Base image"
186196
steps:
187197
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
198+
with:
199+
ref: ${{ github.event.inputs.branch || github.ref }}
188200
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
189201
- name: Log in to container registry
190202
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
@@ -211,12 +223,22 @@ jobs:
211223
with:
212224
name: package-toolkit-runtime-arm64
213225
path: ./containers/base/arm64/assembly
226+
- name: Determine image tags
227+
id: tags
228+
run: |
229+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
230+
# For manual runs, use version and branch name (sanitized)
231+
BRANCH_NAME=$(echo "${{ github.event.inputs.branch }}" | sed 's/[^a-zA-Z0-9._-]/-/g')
232+
echo "tags=ghcr.io/atlanhq/atlan-java:${{ needs.merge-build.outputs.version }}-${BRANCH_NAME}" >> $GITHUB_OUTPUT
233+
else
234+
# For main branch pushes, use version and latest
235+
echo "tags=ghcr.io/atlanhq/atlan-java:${{ needs.merge-build.outputs.version }},ghcr.io/atlanhq/atlan-java:latest" >> $GITHUB_OUTPUT
236+
fi
214237
- name: Build and publish container image
215-
if: ${{ github.ref == 'refs/heads/main'}}
216238
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
217239
with:
218240
push: true
219-
tags: ghcr.io/atlanhq/atlan-java:${{ needs.merge-build.outputs.version }}, ghcr.io/atlanhq/atlan-java:latest
241+
tags: ${{ steps.tags.outputs.tags }}
220242
context: ./containers/base
221243
platforms: linux/amd64,linux/arm64
222244
custom-package-images:
@@ -249,3 +271,4 @@ jobs:
249271
with:
250272
package_name: ${{ matrix.package_name }}
251273
version: ${{ needs.merge-build.outputs.version }}
274+
branch: ${{ github.event.inputs.branch || '' }}

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[versions]
22
jackson = "2.20.1"
33
slf4j = "2.0.17"
4-
elasticsearch = "9.2.0"
4+
elasticsearch = "9.2.1"
55
freemarker = "2.3.34"
66
classgraph = "4.8.184"
77
testng = "7.11.0"
88
log4j = "2.25.2"
99
wiremock = "3.13.2"
1010
jnanoid = "2.0.0"
11-
awssdk = "2.38.7"
12-
gcs = "26.71.0"
11+
awssdk = "2.39.1"
12+
gcs = "26.72.0"
1313
system-stubs = "2.1.8"
1414
fastcsv = "4.1.0"
1515
poi = "5.5.0"
@@ -36,8 +36,8 @@ jetty = "12.1.4"
3636
netty = "4.2.7.Final"
3737
rhino = "1.8.0"
3838
nimbus = "10.6"
39-
otel = "1.55.0"
40-
otel-instrumentation = "2.21.0-alpha"
39+
otel = "1.56.0"
40+
otel-instrumentation = "2.22.0-alpha"
4141

4242
[libraries]
4343
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" }

0 commit comments

Comments
 (0)