-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.15 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Deploy
on:
workflow_dispatch:
inputs:
branch_hash:
description: Branch hash (default) or revision to deploy
default: main
environments:
description: The environment to deploy to
type: choice
default: testing
options:
- testing
- staging
- production
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Deploy to ${{inputs.environments}}
uses: hathitrust/github_actions/deploy@v1
with:
image: ghcr.io/${{ github.repository }}:${{ inputs.branch_hash || github.sha}}
file: environments/${{ github.event.repository.name }}/${{inputs.environments}}/crms-image.txt
CONFIG_REPO_RW_APP_ID: ${{ vars.CONFIG_REPO_RW_APP_ID }}
CONFIG_REPO_FULL_NAME: ${{ vars.CONFIG_REPO_FULL_NAME }}
CONFIG_REPO_RW_KEY: ${{secrets.CONFIG_REPO_RW_KEY}}