Skip to content

Commit

Permalink
Use correct image name, regardless of branch (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
streamer45 authored Jul 28, 2023
1 parent 6daa13a commit 8b86b3c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@ jobs:
id: minikube
uses: medyagh/setup-minikube@latest
- name: Build image
run: eval $(minikube -p minikube docker-env) && make docker-build
run: |
eval $(minikube -p minikube docker-env) && \
make docker-build && \
echo "docker_image=$(docker images --format '{{.Repository}}:{{.Tag}}' | head -n 1)" >> "$GITHUB_ENV"
working-directory: ${{ github.workspace }}/${{ github.repository }}
- name: Create pod
run: |
kubectl run calls-offloader --image=calls-offloader:dev-$(git rev-parse --short HEAD) \
echo "Running ${{ env.docker_image }}" && \
kubectl run calls-offloader --image="${{ env.docker_image }}" \
--env="LOGGER_CONSOLELEVEL=debug" --env="LOGGER_ENABLEFILE=false" --env="JOBS_APITYPE=kubernetes"
working-directory: ${{ github.workspace }}/${{ github.repository }}
- name: Show logs
Expand Down

0 comments on commit 8b86b3c

Please sign in to comment.