Skip to content

Commit

Permalink
Fix Invalid reference format
Browse files Browse the repository at this point in the history
  • Loading branch information
bifrurcated committed Jan 14, 2024
1 parent 8fd08c1 commit b7dde4a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ jobs:
- name: Build image
run: mvn spring-boot:build-image -Ddockerfile=Dockerfile.layers -DskipTests

- name: print JAR_FILE
run: echo $projectVersion
- name: Set image name
run: |
artifactId=$(echo ${GITHUB_REF#refs/heads/})
image_name="${artifactId}:${version}"
echo "IMAGE_NAME=${image_name}" >> $GITHUB_ENV
- name: print JAR_FILE
run: echo $projectArtefactId
- name: print IMAGE_NAME
run: echo "$IMAGE_NAME"

- name: Push image
run: docker push ${{ secrets.DOCKER_USERNAME }}/${{ env.projectArtefactId }}:${{ env.projectVersion }}
run: docker push ${{ secrets.DOCKER_USERNAME }}/${{ env.IMAGE_NAME }}

0 comments on commit b7dde4a

Please sign in to comment.