+87
-92
lines changedFilter options
+87
-92
lines changed Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
1
+
name: Release Artifacts
2
+
3
+
on:
4
+
push:
5
+
tags:
6
+
- '**'
7
+
8
+
permissions:
9
+
contents: read
10
+
id-token: write
11
+
packages: write
12
+
13
+
concurrency:
14
+
group: ${{ github.workflow }}-${{ github.ref }}
15
+
cancel-in-progress: true
16
+
17
+
jobs:
18
+
build-and-publish-jar:
19
+
runs-on: ubuntu-latest
20
+
21
+
permissions:
22
+
contents: write
23
+
pull-requests: write
24
+
repository-projects: write
25
+
26
+
steps:
27
+
- uses: actions/checkout@v3
28
+
- name: Set up JDK 17
29
+
uses: actions/setup-java@v3
30
+
with:
31
+
java-version: '17'
32
+
distribution: 'temurin'
33
+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
34
+
settings-path: ${{ github.workspace }} # location for the settings.xml file
35
+
36
+
- name: Set env
37
+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
38
+
39
+
- name: Build with Maven
40
+
run: mvn -B -Drevision=${{ env.RELEASE_VERSION }} clean package --file pom.xml -Pproduction
41
+
42
+
- name: Release Assets
43
+
uses: softprops/action-gh-release@v1
44
+
env:
45
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46
+
if: startsWith(github.ref, 'refs/tags/')
47
+
with:
48
+
files: target/*.jar
49
+
50
+
build-and-push-docker-image:
51
+
runs-on: ubuntu-latest
52
+
53
+
needs:
54
+
- build-and-publish-jar
55
+
56
+
permissions:
57
+
contents: write
58
+
pull-requests: write
59
+
repository-projects: write
60
+
61
+
steps:
62
+
- uses: actions/checkout@v3
63
+
- name: Set up JDK 17
64
+
uses: actions/setup-java@v3
65
+
with:
66
+
java-version: '17'
67
+
distribution: 'temurin'
68
+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
69
+
settings-path: ${{ github.workspace }} # location for the settings.xml file
70
+
71
+
- name: Set env
72
+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
73
+
74
+
- name: Build with Maven
75
+
run: mvn -B -Drevision=${{ env.RELEASE_VERSION }} clean package --file pom.xml -Pproduction
76
+
77
+
- name: Log in to Docker Hub
78
+
run: docker login -u amithkoujalgi -p ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
79
+
80
+
- name: Build and push Docker image
81
+
uses: docker/build-push-action@v5
82
+
if: startsWith(github.ref, 'refs/tags/')
83
+
with:
84
+
context: .
85
+
file: Dockerfile
86
+
push: true
87
+
tags: amithkoujalgi/ollama4j-web-ui:${{ env.RELEASE_VERSION }}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4