set image name as a global env

This commit is contained in:
Dan Alima 2023-12-31 13:31:30 +02:00
parent 5228352af7
commit 62312f2f66

View file

@ -11,6 +11,8 @@ on:
jobs: jobs:
build: build:
env:
IMAGE_NAME: danvid.jfrog.io/assignment-docker/spring-petclinic:${{ github.sha }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -38,8 +40,6 @@ jobs:
run: ./mvnw test run: ./mvnw test
- name: Package the project as a runnable Docker image - name: Package the project as a runnable Docker image
env:
IMAGE_NAME: danvid.jfrog.io/assignment-docker/spring-petclinic:${{ github.sha }}
run: | run: |
jf docker build -t $IMAGE_NAME . jf docker build -t $IMAGE_NAME .