Skip to content

Commit 359afe6

Browse files
committed
update v11 actions
1 parent afdf38a commit 359afe6

4 files changed

Lines changed: 49 additions & 7 deletions

File tree

.github/workflows/v10-v11-principal-installer-release.yml renamed to .github/workflows/v10-principal-installer-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Installer Release
1+
name: Installer Release v10
22

33
on:
44
release:
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Installer Release V11
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version_tag:
7+
description: "Version to deploy."
8+
required: true
9+
10+
jobs:
11+
build:
12+
name: Build
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- name: Check out code into the right branch
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Go 1.x
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: ^1.20
22+
id: go
23+
24+
- name: Build
25+
env:
26+
GOOS: linux
27+
GOARCH: amd64
28+
run: |
29+
cd "${{ github.workspace }}/installer/config"
30+
sed -i 's|const INSTALLER_VERSION = ""|const INSTALLER_VERSION = "${{ secrets.AGENT_SECRET_PREFIX }}"|' const.go
31+
cd "${{ github.workspace }}/installer"
32+
go build -o installer -v .
33+
34+
- name: Create Release
35+
id: create_release
36+
uses: softprops/action-gh-release@v2
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
tag_name: ${{ github.event.inputs.version_tag }}
41+
name: ${{ github.event.inputs.version_tag }}
42+
body_path: ./CHANGELOG.md
43+
draft: false
44+
prerelease: false
45+
files: |
46+
./installer/installer

.github/workflows/v11-used-docker-java-11.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
tag:
1010
required: true
1111
type: string
12-
version:
13-
required: true
14-
type: string
1512
jobs:
1613
build:
1714
name: Build
@@ -30,8 +27,8 @@ jobs:
3027
working-directory: ./${{inputs.image_name}}
3128
run: |
3229
echo "Building with maven"
33-
echo "The configured version is: ${{ inputs.version }}"
34-
mvn -B -Drevision=${{ inputs.version }} -Pprod clean package -s settings.xml
30+
echo "The configured version is: ${{ inputs.tag }}"
31+
mvn -B -Drevision=${{ inputs.tag }} -Pprod clean package -s settings.xml
3532
env:
3633
MAVEN_TK: ${{ secrets.GITHUB_TOKEN }}
3734

.github/workflows/v11-used-images-without-dependencies.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
with:
6262
image_name: ${{ inputs.microservice }}
6363
tag: ${{inputs.tag}}-community
64-
version: ${{inputs.tag}}
6564

6665
java_deployment:
6766
name: Java deployment

0 commit comments

Comments
 (0)