Skip to content

Commit

Permalink
ci: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
GenjiruSUchiwa committed Nov 24, 2024
1 parent b0054ec commit ea25cd7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,39 @@ jobs:
username: genjirusuchiwa
password: ${{ secrets.PLACE_DOCKER_HUB_TOKEN }}

- name: Debug Docker Info
run: |
echo "Checking Docker login status..."
docker info
echo "Checking target image name..."
echo "Repo: ${{ env.DOCKER_REPO }}"
echo "App: ${{ env.APP_NAME }}"
echo "Version: ${{ inputs.version }}"
echo "Arch: ${{ env.DOCKER_ARCH }}"
- name: Build and Push Docker Image
run: |
echo "Running make docker with parameters:"
echo "RUNTIME=${{ env.RUNTIME }}"
echo "APP_NAME=${{ env.APP_NAME }}"
echo "VERSION=${{ inputs.version }}"
echo "DOCKER_REPO=${{ env.DOCKER_REPO }}"
make docker \
RUNTIME=${{ env.RUNTIME }} \
APP_NAME=${{ env.APP_NAME }} \
VERSION=${{ inputs.version }} \
DOCKER_REPO=${{ env.DOCKER_REPO }}
echo "Docker images after build:"
docker images
echo "Pushing image..."
docker push ${{ env.DOCKER_REPO }}/${{ env.APP_NAME }}:${{ inputs.version }}-${{ env.DOCKER_ARCH }}
echo "Tagging latest..."
docker tag ${{ env.DOCKER_REPO }}/${{ env.APP_NAME }}:${{ inputs.version }}-${{ env.DOCKER_ARCH }} \
${{ env.DOCKER_REPO }}/${{ env.APP_NAME }}:latest
echo "Pushing latest..."
docker push ${{ env.DOCKER_REPO }}/${{ env.APP_NAME }}:latest

0 comments on commit ea25cd7

Please sign in to comment.