This commit is contained in:
@@ -21,11 +21,10 @@ jobs:
|
||||
- name: Build and push Docker images
|
||||
env:
|
||||
HARBOR_URL: ${{ vars.HARBOR_URL }}
|
||||
TAG: ${{ github.sha }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
run: |
|
||||
ROOT_DIR=$(pwd)
|
||||
IMAGE_NAME="${HARBOR_URL}/release/$REPOSITORY:${TAG}"
|
||||
IMAGE_NAME="${HARBOR_URL}/release/$REPOSITORY:$GITHUB_REF_NAME"
|
||||
echo "Building image: ${IMAGE_NAME}"
|
||||
docker build -t ${IMAGE_NAME} .
|
||||
echo "Pushing image: ${IMAGE_NAME}"
|
||||
|
||||
Reference in New Issue
Block a user