Skip to content

Commit d0fdcdb

Browse files
author
CssTechnology
authored
Update main.yml
1 parent 4c06e6a commit d0fdcdb

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,27 @@ jobs:
4242
username: ${{ secrets.JFROG_USERNAME }}
4343
password: ${{ secrets.JFROG_TOKEN }}
4444

45-
- name: Build Docker Image
46-
run: docker version
47-
# docker build -t trialktyenb.jfrog.io/artifactory/springboot:${{ steps.get-version.outputs.version }} .
48-
49-
- name: Push Docker Image
50-
run: VERSION=$(git rev-parse --short HEAD)
51-
# docker push trialktyenb.jfrog.io/artifactory/springboot:${{ steps.get-version.outputs.version }}
45+
- name: Docker metadata
46+
id: docker-meta
47+
uses: docker/metadata-action@v5
48+
with:
49+
images: "${{ inputs.docker-repository }}/${{ steps.prep.outputs.image }}"
50+
labels: |
51+
com.uhg.image.askid=${{ inputs.ask-id }}
52+
com.uhg.image.branch=${{ github.ref }}
53+
com.uhg.image.build=${{ github.run_id }}
54+
com.uhg.image.buildnumber=${{ github.run_number }}
55+
com.uhg.image.buildurl=${{ github.run_url }}
56+
com.uhg.image.repo_id=${{ github.repository_id }}
57+
com.uhg.image.workflow_name=${{ github.workflow }}
58+
com.uhg.image.workflow_ref=${{ github.workflow_ref }}
59+
org.opencontainers.image.source=${{ github.repository }}
60+
org.opencontainers.image.revision=${{ github.sha }}
61+
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
62+
org.opencontainers.image.authors=${{ github.event.head_commit.author.name }}
63+
org.opencontainers.image.url=${{ github.event.head_commit.url }}
64+
org.opencontainers.image.documentation=${{ github.event.head_commit.url }}
65+
org.opencontainers.image.vendor=UnitedHealth Group
66+
org.opencontainers.image.description=${{ steps.get-description.outputs.repo-description }}
67+
tags: ${{ steps.prep.outputs.tag }}
68+

0 commit comments

Comments
 (0)