fixing further
All checks were successful
Build and Push Docker Image / docker (push) Successful in 6s
All checks were successful
Build and Push Docker Image / docker (push) Successful in 6s
This commit is contained in:
@@ -26,17 +26,16 @@ jobs:
|
||||
- name: Build image
|
||||
env:
|
||||
IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
||||
run:
|
||||
run: |
|
||||
test -n "$IMAGE_NAME"
|
||||
SHORT_SHA="$(git rev-parse --short HEAD)"
|
||||
docker build \
|
||||
--tag "$IMAGE_NAME:latest" \
|
||||
--tag "$IMAGE_NAME:$SHORT_SHA" \
|
||||
.
|
||||
docker build -t "$IMAGE_NAME:latest" -t "$IMAGE_NAME:$SHORT_SHA" .
|
||||
|
||||
- name: Push image
|
||||
env:
|
||||
IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
||||
run:
|
||||
run: |
|
||||
test -n "$IMAGE_NAME"
|
||||
SHORT_SHA="$(git rev-parse --short HEAD)"
|
||||
docker push "$IMAGE_NAME:latest"
|
||||
docker push "$IMAGE_NAME:$SHORT_SHA"
|
||||
|
||||
Reference in New Issue
Block a user