mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
Fix repository name must to be lowercase.
This commit is contained in:
parent
6bb2b47f95
commit
b1f4553789
1 changed files with 8 additions and 3 deletions
11
.github/workflows/dev_pipeline.yml
vendored
11
.github/workflows/dev_pipeline.yml
vendored
|
@ -46,10 +46,15 @@ jobs:
|
||||||
registry: docker.pkg.github.com
|
registry: docker.pkg.github.com
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build the Docker image
|
- name: PrepareReg Names
|
||||||
|
run: |
|
||||||
|
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
|
||||||
|
echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV
|
||||||
|
- id: docker-build-push
|
||||||
|
name: Docker Build and Push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
docker.pkg.github.com/${{ github.repository }}/spring-petclinic-image:${{ github.sha }}
|
docker.pkg.github.com/${{ env.IMAGE_REPOSITORY }}/spring-petclinic-image:${{ github.sha }}
|
||||||
docker.pkg.github.com/${{ github.repository }}/spring-petclinic-image:${{ github.ref }}
|
docker.pkg.github.com/${{ env.IMAGE_REPOSITORY }}/spring-petclinic-image:${{ github.ref }}
|
Loading…
Reference in a new issue