chore: add pre release testing #1
Workflow file for this run
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: Tag and Publish UDS Capability | ||
on: | ||
push: | ||
branches: | ||
- ewyles/pre-release-testing | ||
permissions: | ||
contents: read | ||
packages: write | ||
jobs: | ||
publish-package: | ||
runs-on: ${{ matrix.architecture == 'arm64' && 'uds-ubuntu-arm64-4-core' || 'ubuntu-latest' }} | ||
name: Publish ${{ matrix.flavor }} | ||
strategy: | ||
matrix: | ||
flavor: [upstream, registry1] | ||
architecture: [amd64] | ||
exclude: | ||
- flavor: registry1 | ||
architecture: arm64 | ||
name: Publish ${{ matrix.flavor }} ${{ matrix.architecture }} | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
- name: Environment setup | ||
uses: defenseunicorns/uds-common/.github/actions/setup@d50b4ebe3712fea4114289db0c36da61a5f60eb5 # v0.5.1 | ||
with: | ||
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }} | ||
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }} | ||
ghToken: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish Package | ||
run: UDS_ARCHITECTURE=${{ matrix.architecture }} uds run -f tasks/ewyles-temp.yaml package --set FLAVOR=${{ matrix.flavor }} | ||
- name: Save logs | ||
if: always() | ||
uses: defenseunicorns/uds-common/.github/actions/save-logs@d50b4ebe3712fea4114289db0c36da61a5f60eb5 # v0.5.1 | ||
with: | ||
suffix: ${{ matrix.flavor }}-${{ github.run_id }}-${{ github.run_attempt }} |