Skip to content

Commit 0deda11

Browse files
Update maven-publish.yml
1 parent 76144a2 commit 0deda11

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed
Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
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

63
on:
74
push:
85

96
jobs:
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 }}

0 commit comments

Comments
 (0)