This commit is contained in:
@@ -13,7 +13,7 @@ on:
|
||||
env:
|
||||
PATH: /opt/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
REGISTRY: registry.cn-chengdu.aliyuncs.com
|
||||
IMAGE_NAMESPPACE: bamanker
|
||||
IMAGE_NAMESPACE: bamanker
|
||||
IMAGE_NAME: myk3stest
|
||||
APP_NAME: myk3s-test
|
||||
|
||||
@@ -43,8 +43,7 @@ jobs:
|
||||
env:
|
||||
APP_TAG: ${{ steps.get_version.outputs.version }}
|
||||
run: |
|
||||
cat ./deployment.yml |
|
||||
export APP_TAG="${{ env.TAG }}"
|
||||
cat ./deployment.yml && export APP_TAG="${{ env.TAG }}"
|
||||
# export APP_TAG=$env.TAG
|
||||
# echo APP_TAG=${{ env.TAG }} |
|
||||
# export APP_NAME=${{ env.APP_NAME }} |
|
||||
|
||||
30
pom.xml
30
pom.xml
@@ -8,9 +8,10 @@
|
||||
<version>4.0.1</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
|
||||
<groupId>com.bamanker</groupId>
|
||||
<artifactId>myk3sTest</artifactId>
|
||||
<version>0.0.1</version>
|
||||
<version>v1.1.9</version>
|
||||
<name>myk3sTest</name>
|
||||
<description>myk3sTest</description>
|
||||
<url/>
|
||||
@@ -28,11 +29,13 @@
|
||||
</scm>
|
||||
<properties>
|
||||
<java.version>25</java.version>
|
||||
|
||||
<app.version>${version}</app.version>
|
||||
<app.name>${artifactId}</app.name>
|
||||
<maven.compiler.source>25</maven.compiler.source>
|
||||
<maven.compiler.target>25</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@@ -59,7 +62,27 @@
|
||||
|
||||
<build>
|
||||
<finalName>myk3sTest</finalName>
|
||||
<!--指定filtering=true.maven的占位符解析表达式就可以用于它里面的文件-->
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<!--支持yaml读取pom的参数-->
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<encoding>UTF-8</encoding>
|
||||
<delimiters>
|
||||
<delimiter>@</delimiter>
|
||||
</delimiters>
|
||||
<useDefaultDelimiters>false</useDefaultDelimiters>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
@@ -77,13 +100,11 @@
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
|
||||
<excludes>
|
||||
<exclude>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
@@ -94,5 +115,4 @@
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user