Skip to content

Commit 43a3392

Browse files
author
CssTechnology
authored
Update main.yml
1 parent 1b0bb66 commit 43a3392

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,19 @@ jobs:
3434
3535
- name: Build with Maven
3636
run: mvn clean package -DskipTests
37+
38+
- name: Login to JFrog Artifactory
39+
uses: docker/login-action@v2
40+
with:
41+
registry: trialktyenb.jfrog.io
42+
username: ${{ secrets.JFROG_USERNAME }}
43+
password: ${{ secrets.JFROG_PASSWORD }
44+
45+
- name: Build and push Docker image
46+
uses: docker/build-push-action@v3
47+
with:
48+
context: .
49+
push: true
50+
tags: |
51+
trialktyenb.jfrog.io/docker-repo/myimage:${{ steps.get-version.outputs.version }}
52+

0 commit comments

Comments
 (0)