Skip to content

Commit

Permalink
feat: add component to deployment candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
aps831 committed May 11, 2024
1 parent 821b78c commit 8ad2e23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deployment-candidate-pub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: Tag
required: true
type: string
component:
description: Component
required: true
type: string
deployment-candidate-target-owner:
description: Target owner
required: true
Expand Down Expand Up @@ -37,11 +41,12 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.registry_package.package_version.container_metadata.tag.name != 'latest' && !endsWith(github.event.registry_package.package_version.container_metadata.tag.name, '.sig') }}
steps:
- uses: aps831/gh-actions/deployment-candidate-pub@master
- uses: aps831/gh-actions/deployment-candidate-pub@feat/latest-deployment # TODO
with:
tag: ${{ inputs.tag }}
component: ${{ inputs.component }}
target-owner: ${{ inputs.deployment-candidate-target-owner }}
target-repo: ${{ inputs.deployment-candidate-target-repo }}
target-workflow: ${{ inputs.deployment-candidate-target-workflow }}
target-branch: ${{ inputs.deployment-candidate-target-branch }}
tag: ${{ inputs.tag }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
7 changes: 6 additions & 1 deletion .github/workflows/deployment-candidate-sub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: Tag
required: true
type: string
component:
description: Component
required: true
type: string
envs:
description: Array of deployment environments
required: false
Expand Down Expand Up @@ -50,9 +54,10 @@ jobs:
matrix:
env: ${{ fromJSON(inputs.envs) }}
steps:
- uses: aps831/gh-actions/deployment-candidate-sub@master
- uses: aps831/gh-actions/deployment-candidate-sub@feat/latest-deployment # TODO
with:
tag: ${{ inputs.tag }}
component: ${{ inputs.component }}
env: ${{ matrix.env }}
working-directory: ${{ inputs.working-directory }}
tfvars-filename: ${{ inputs.tfvars-filename }}
Expand Down

0 comments on commit 8ad2e23

Please sign in to comment.