File tree Expand file tree Collapse file tree 1 file changed +20
-21
lines changed
Expand file tree Collapse file tree 1 file changed +20
-21
lines changed Original file line number Diff line number Diff line change 1- # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2- # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3-
4- name : Maven Package
1+ name : ci
52
63on :
74 push :
85
96jobs :
10- build :
11-
7+ docker :
128 runs-on : ubuntu-latest
13- permissions :
14- contents : read
15- packages : write
16-
179 steps :
18- - uses : actions/checkout@v4
19- - name : Set up JDK 11
20- uses : actions/setup-java@v4
21- with :
22- java-version : ' 17'
23- distribution : ' temurin'
24- server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
25- settings-path : ${{ github.workspace }} # location for the settings.xml file
26-
27- - name : Build with Maven
28- run : mvn -B package --file pom.xml
10+ -
11+ name : Login to Docker Hub
12+ uses : docker/login-action@v3
13+ with :
14+ username : ${{ vars.DOCKERHUB_USERNAME }}
15+ password : ${{ secrets.DOCKERHUB_TOKEN }}
16+ -
17+ name : Set up QEMU
18+ uses : docker/setup-qemu-action@v3
19+ -
20+ name : Set up Docker Buildx
21+ uses : docker/setup-buildx-action@v3
22+ -
23+ name : Build and push
24+ uses : docker/build-push-action@v6
25+ with :
26+ push : true
27+ tags : adijaiswal/app:${{ github.sha }}
You can’t perform that action at this time.
0 commit comments