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
|
- name: Build image
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
||||||
run:
|
run: |
|
||||||
|
test -n "$IMAGE_NAME"
|
||||||
SHORT_SHA="$(git rev-parse --short HEAD)"
|
SHORT_SHA="$(git rev-parse --short HEAD)"
|
||||||
docker build \
|
docker build -t "$IMAGE_NAME:latest" -t "$IMAGE_NAME:$SHORT_SHA" .
|
||||||
--tag "$IMAGE_NAME:latest" \
|
|
||||||
--tag "$IMAGE_NAME:$SHORT_SHA" \
|
|
||||||
.
|
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
||||||
run:
|
run: |
|
||||||
|
test -n "$IMAGE_NAME"
|
||||||
SHORT_SHA="$(git rev-parse --short HEAD)"
|
SHORT_SHA="$(git rev-parse --short HEAD)"
|
||||||
docker push "$IMAGE_NAME:latest"
|
docker push "$IMAGE_NAME:latest"
|
||||||
docker push "$IMAGE_NAME:$SHORT_SHA"
|
docker push "$IMAGE_NAME:$SHORT_SHA"
|
||||||
|
|||||||
Reference in New Issue
Block a user