Skip to content

Commit

Permalink
deploy debuging
Browse files Browse the repository at this point in the history
  • Loading branch information
siomochkin authored May 26, 2024
1 parent 84c4fff commit 4a4e96e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ jobs:
docker build . --file Dockerfile --tag $IMAGE_NAME:$TIMESTAMP
docker tag $IMAGE_NAME:$TIMESTAMP $IMAGE_NAME:latest
echo $IMAGE_NAME:$TIMESTAMP > image_name.txt
echo $IMAGE_NAME:latest > latest_image_name.txt
- name: Debug output
run: |
echo "Image name with timestamp: $(cat image_name.txt)"
echo "Image name latest: $IMAGE_NAME:latest"
echo "Image name latest: $(cat latest_image_name.txt)"
- name: Push the Docker image
run: |
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/somochkin-blog
TIMESTAMP=$(cat image_name.txt)
docker push $IMAGE_NAME:$TIMESTAMP
docker push $IMAGE_NAME:latest
IMAGE_NAME=$(cat image_name.txt)
LATEST_IMAGE_NAME=$(cat latest_image_name.txt)
echo "Pushing image $IMAGE_NAME"
docker push $IMAGE_NAME
echo "Pushing image $LATEST_IMAGE_NAME"
docker push $LATEST_IMAGE_NAME

0 comments on commit 4a4e96e

Please sign in to comment.