Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature-branch-deployment: Add the possibility to request upgrading f… #6111

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/test-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
type: string
default: '{}'
required: false

upgrade_from_58:
description: Whether to upgrade from 5.8
type: boolean
required: false
default: false

jobs:
worker:
Expand Down Expand Up @@ -110,13 +114,14 @@ jobs:
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- run: if [ "${{ inputs.upgrade_from_58 }}" == "true" ]; then ID=35; else ID=26; fi; echo "AWX_TPL_ID=$ID" >> "$GITHUB_ENV"
- name: deploy via awx
uses: certara/github-action-ansible-tower-awx@master
with:
ansible-tower-user: ${{ secrets.AWX_USER }}
ansible-tower-pass: ${{ secrets.AWX_PASSWORD }}
ansible-tower-url: ${{ secrets.AWX_URL }}
template-id: "26"
template-id: "${{ env.AWX_TPL_ID }}"
additional-vars: |
{ "octi_version": "${{steps.meta.outputs.version}}", "octi_config": ${{ inputs.octi_config }} }
- name: display URL
Expand Down
Loading