fix!: sso failing deployment when it is disabled (#115) #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish UDS Package Gitlab | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tag-new-version: | |
name: Tag New Version | |
permissions: write-all | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release-flag.outputs.release_created }} | |
steps: | |
- name: Create release tag | |
id: tag | |
uses: google-github-actions/release-please-action@a37ac6e4f6449ce8b3f7607e4d97d0146028dc0b # v4.1.0 | |
- id: release-flag | |
run: echo "release_created=${{ steps.tag.outputs.release_created || false }}" >> $GITHUB_OUTPUT | |
publish-package: | |
needs: tag-new-version | |
if: ${{ needs.tag-new-version.outputs.release_created == 'true' }} | |
runs-on: ubuntu-latest | |
name: Publish ${{ matrix.flavor }} | |
strategy: | |
matrix: | |
flavor: [upstream, registry1] | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Environment setup | |
uses: defenseunicorns/uds-common/.github/actions/setup@a6fba9c0084319325d70816a3481aec0979649fa # v0.4.0 | |
with: | |
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }} | |
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }} | |
ghToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Package | |
run: uds run -f tasks/publish.yaml package --set FLAVOR=${{ matrix.flavor }} | |
- name: Publish Bundle | |
if: ${{ matrix.flavor == 'upstream' }} | |
run: uds run -f tasks/publish.yaml test-bundle --set FLAVOR=${{ matrix.flavor }} | |
- name: Save logs | |
if: always() | |
uses: defenseunicorns/uds-common/.github/actions/save-logs@a6fba9c0084319325d70816a3481aec0979649fa # v0.4.0 | |
with: | |
suffix: '${{ matrix.flavor }}-${{ github.run_id }}-${{ github.run_attempt }}' |