4545 - name : Checkout
4646 uses : actions/checkout@v4
4747
48+ - name : Prepare version labels
49+ uses : k15g/action-version-labels@edge
50+ with :
51+ prefix : project
52+
4853 - name : Login to GitHub Container Registry
4954 uses : docker/login-action@v3
5055 with :
@@ -63,14 +68,21 @@ jobs:
6368 with :
6469 name : target
6570 path : target
66- retention-days : 7
6771
6872 - name : Build and push [jvm-edge]
6973 run : docker buildx build --push -t ghcr.io/javabin/submittheforce:jvm-edge -f src/main/docker/Dockerfile.jvm --platform linux/amd64,linux/arm64 .
7074
7175 - name : Build and push [edge]
7276 run : docker buildx build --push -t ghcr.io/javabin/submittheforce:edge -f src/main/docker/Dockerfile.jvm --platform linux/amd64,linux/arm64 .
7377
78+ - name : Build and push [jvm-version]
79+ if : startsWith(github.ref, 'refs/tags/v')
80+ run : docker buildx build --push -t ghcr.io/javabin/submittheforce:jvm-${{ env.PROJECT_VERSION }} -f src/main/docker/Dockerfile.jvm --platform linux/amd64,linux/arm64 .
81+
82+ - name : Build and push [version]
83+ if : startsWith(github.ref, 'refs/tags/v')
84+ run : docker buildx build --push -t ghcr.io/javabin/submittheforce:${{ env.PROJECT_VERSION }} -f src/main/docker/Dockerfile.jvm --platform linux/amd64,linux/arm64 .
85+
7486 - name : Build and push [jvm-latest]
7587 if : startsWith(github.ref, 'refs/tags/v')
7688 run : docker buildx build --push -t ghcr.io/javabin/submittheforce:jvm-latest -f src/main/docker/Dockerfile.jvm --platform linux/amd64,linux/arm64 .
@@ -89,6 +101,11 @@ jobs:
89101 - name : Checkout
90102 uses : actions/checkout@v4
91103
104+ - name : Prepare version labels
105+ uses : k15g/action-version-labels@edge
106+ with :
107+ prefix : project
108+
92109 - name : Set up JDK
93110 uses : actions/setup-java@v4
94111 with :
@@ -113,7 +130,7 @@ jobs:
113130 with :
114131 token : ${{ secrets.GITHUB_TOKEN }}
115132 file : target/submit-runner.jar
116- name : submit-runner .jar
133+ name : submit-${{ env.PROJECT_VERSION }}-uberjar .jar
117134 type : application/java-archive
118135 label : Uber-JAR
119136
@@ -127,6 +144,11 @@ jobs:
127144 - name : Checkout
128145 uses : actions/checkout@v4
129146
147+ - name : Prepare version labels
148+ uses : k15g/action-version-labels@edge
149+ with :
150+ prefix : project
151+
130152 - name : Set up QEMU
131153 uses : docker/setup-qemu-action@v3
132154
@@ -159,7 +181,7 @@ jobs:
159181 with :
160182 token : ${{ secrets.GITHUB_TOKEN }}
161183 file : target/submit-runner-linux-x86_64
162- name : submit-runner -linux-x86_64
184+ name : submit-${{ env.PROJECT_VERSION }}-native -linux-x86_64
163185 label : Native [amd64]
164186
165187 native-arm64 :
@@ -172,6 +194,11 @@ jobs:
172194 - name : Checkout
173195 uses : actions/checkout@v4
174196
197+ - name : Prepare version labels
198+ uses : k15g/action-version-labels@edge
199+ with :
200+ prefix : project
201+
175202 - name : Set up QEMU
176203 uses : docker/setup-qemu-action@v3
177204
@@ -204,7 +231,7 @@ jobs:
204231 with :
205232 token : ${{ secrets.GITHUB_TOKEN }}
206233 file : target/submit-runner-linux-aarch64
207- name : submit-runner -linux-aarch64
234+ name : submit-${{ env.PROJECT_VERSION }}-native -linux-aarch64
208235 label : Native [arm64]
209236
210237 docker-native :
@@ -218,6 +245,11 @@ jobs:
218245 - name : Checkout
219246 uses : actions/checkout@v4
220247
248+ - name : Prepare version labels
249+ uses : k15g/action-version-labels@edge
250+ with :
251+ prefix : project
252+
221253 - name : Login to GitHub Container Registry
222254 uses : docker/login-action@v3
223255 with :
@@ -246,6 +278,10 @@ jobs:
246278 - name : Build and push [native-edge]
247279 run : docker buildx build --push -t ghcr.io/javabin/submittheforce:native-edge -f src/main/docker/Dockerfile.native-micro --platform linux/amd64,linux/arm64 .
248280
281+ - name : Build and push [native-version]
282+ if : startsWith(github.ref, 'refs/tags/v')
283+ run : docker buildx build --push -t ghcr.io/javabin/submittheforce:native-${{ env.PROJECT_VERSION }} -f src/main/docker/Dockerfile.native-micro --platform linux/amd64,linux/arm64 .
284+
249285 - name : Build and push [native-latest]
250286 if : startsWith(github.ref, 'refs/tags/v')
251287 run : docker buildx build --push -t ghcr.io/javabin/submittheforce:native-latest -f src/main/docker/Dockerfile.native-micro --platform linux/amd64,linux/arm64 .
0 commit comments