Skip to content

Commit c62a892

Browse files
authored
Update java-ci.yml
1 parent 8c8caeb commit c62a892

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/java-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
env:
1414
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
1515
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
16+
IMAGE_NAME: java-app
1617

1718
steps:
1819
- name: Checkout code
@@ -84,7 +85,7 @@ jobs:
8485

8586
- name: Build Docker image
8687
run: |
87-
docker build -t ghcr.io/${{ github.repository }}/java-app:${{ github.sha }} .
88+
docker build -t ghcr.io/${{ github.repository }}/${IMAGE_NAME}:${{ github.sha }} .
8889
8990
- name: Push Docker image to GHCR
90-
run: docker push ghcr.io/${{ github.repository }}/java-app:${{ github.sha }}
91+
run: docker push ghcr.io/${{ github.repository }}/${IMAGE_NAME}:${{ github.sha }}

0 commit comments

Comments
 (0)