@@ -3,61 +3,61 @@ name: Main
33on : push
44
55env :
6- REGISTRY : ghcr.io
7- IMAGE_NAME : ${{ github.repository }}
6+ REGISTRY : ghcr.io
7+ IMAGE_NAME : ${{ github.repository }}
88
99jobs :
10- build-and-publish :
11- runs-on : ubuntu-latest
12- permissions :
13- contents : write
14- packages : write
15- steps :
16- - name : Checkout
17- uses : actions/checkout@v3
18-
19- - name : Prepare java
20- uses : actions/setup-java@v2
21- with :
22- distribution : " adopt"
23- java-version : " 16 "
24-
25- - name : Install clojure tools
26- uses : DeLaGuardo/setup-clojure@3.5
27- with :
28- cli : 1.10.3.943
29-
30- - name : Build bot and copy out jar for docker
31- shell : bash
32- run : |
33- clojure -T:build uber
34- cp target/doplarr.jar docker
35-
36- - name : Release tagged version
37- uses : softprops/action-gh-release@v1
38- if : startsWith(github.ref, 'refs/tags/')
39- with :
40- files : |
41- target/doplarr.jar
42- config.edn
43-
44- - name : Log in to the Container registry
45- uses : docker/login-action@v1
46- with :
47- registry : ${{ env.REGISTRY }}
48- username : ${{ github.actor }}
49- password : ${{ secrets.GITHUB_TOKEN }}
50-
51- - name : Extract metadata (tags, labels) for Docker
52- id : meta
53- uses : docker/metadata-action@v3
54- with :
55- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
56-
57- - name : Build and push Docker image
58- uses : docker/build-push-action@v2
59- with :
60- context : docker
61- push : true
62- tags : ${{ steps.meta.outputs.tags }}
63- labels : ${{ steps.meta.outputs.labels }}
10+ build-and-publish :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
14+ packages : write
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v6
18+
19+ - name : Prepare java
20+ uses : actions/setup-java@v3
21+ with :
22+ distribution : " adopt"
23+ java-version : " 22 "
24+
25+ - name : Install clojure tools
26+ uses : DeLaGuardo/setup-clojure@13.4
27+ with :
28+ cli : latest
29+
30+ - name : Build bot and copy out jar for docker
31+ shell : bash
32+ run : |
33+ clojure -T:build uber
34+ cp target/doplarr.jar docker
35+
36+ - name : Release tagged version
37+ uses : softprops/action-gh-release@v2
38+ if : startsWith(github.ref, 'refs/tags/')
39+ with :
40+ files : |
41+ target/doplarr.jar
42+ config.edn
43+
44+ - name : Log in to the Container registry
45+ uses : docker/login-action@v3
46+ with :
47+ registry : ${{ env.REGISTRY }}
48+ username : ${{ github.actor }}
49+ password : ${{ secrets.GITHUB_TOKEN }}
50+
51+ - name : Extract metadata (tags, labels) for Docker
52+ id : meta
53+ uses : docker/metadata-action@v5
54+ with :
55+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
56+
57+ - name : Build and push Docker image
58+ uses : docker/build-push-action@v6
59+ with :
60+ context : docker
61+ push : true
62+ tags : ${{ steps.meta.outputs.tags }}
63+ labels : ${{ steps.meta.outputs.labels }}
0 commit comments