Skip to content

Commit

Permalink
fix: use image id instead of latest
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Apr 15, 2024
1 parent f438ad4 commit bbd7b44
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,18 @@ runs:
cache-to: type=gha,mode=max
provenance: false

- name: 🔍️ Set image name
shell: bash
run: |
IMAGE_ID=$(echo $DOCKER_METADATA_OUTPUT_TAGS | cut -d ' ' -f 1)
echo "IMAGE_ID=$IMAGE_ID" >> $GITHUB_ENV
- name: 🚀 Deploy to Cloud Run
id: deploy
uses: google-github-actions/deploy-cloudrun@v2
with:
service: ${{ inputs.service }}
image: us-central1-docker.pkg.dev/${{ inputs.project-id }}/images/${{ inputs.service }}:latest
image: ${{ env.IMAGE_ID }}
region: ${{ inputs.region }}
env_vars: ${{ inputs.env-vars }}
flags: ${{ inputs.flags }}
Expand Down

0 comments on commit bbd7b44

Please sign in to comment.