Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
Added current branch has as default.
  • Loading branch information
Ronster2018 authored Dec 27, 2024
1 parent f0c68e0 commit d64aa5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
workflow_dispatch:
inputs:
branch_hash:
description: Branch hash or revision to deploy
default: main
description: Branch hash (default) or revision to deploy
environments:
description: The environment to deploy to
type: choice
Expand All @@ -25,7 +24,7 @@ jobs:
- name: Deploy to workshop
uses: hathitrust/github_actions/deploy@v1
with:
image: ghcr.io/${{ github.repository }}:${{ inputs.branch_hash }}
image: ghcr.io/${{ github.repository }}:${{ inputs.branch_hash || github.sha}}
file: environments/fulltext/${{inputs.environments}}/web-image.txt
CONFIG_REPO_RW_APP_ID: ${{ vars.CONFIG_REPO_RW_APP_ID }}
CONFIG_REPO_FULL_NAME: ${{ vars.CONFIG_REPO_FULL_NAME }}
Expand Down

0 comments on commit d64aa5c

Please sign in to comment.