Skip to content

Commit

Permalink
add deploy ssh key for auto commit to the fleet repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Jul 21, 2023
1 parent be9f912 commit c507f90
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
on:
workflow_dispatch:
inputs:
version:
description: 'The version of the image to deploy'
type: string
required: true
image:
description: 'The image to update'
type: string
required: true
workflow_call:
inputs:
version:
Expand Down Expand Up @@ -31,7 +41,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: ${{ vars.FLEET_REPO }}
# todo set some kind of access token, either pat or ssh
ssh-key: ${{ secrets.FLEET_REPO_SSH_KEY }}
path: fleet
- name: Copy yaml resources to fleet repo
run: |
Expand All @@ -42,6 +52,7 @@ jobs:
with:
cmd: yq -i '(.images.[] | select(.name == "${{ inputs.image }}").newTag) = "${{ inputs.version }}"' fleet/languageforge-lexbox/kustomization.yaml
- name: Push to fleet repo
# https://github.com/EndBug/add-and-commit
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
Expand Down

0 comments on commit c507f90

Please sign in to comment.