From 93816290aa963f70896331cecaf8c84adb3c38ae Mon Sep 17 00:00:00 2001 From: Eric Wyles <23637493+ericwyles@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:31:38 -0500 Subject: [PATCH] trying to run something on arm without going through a full release --- .github/workflows/ewyles-testing-arm.yaml | 46 +++++++++++++++++++++++ tasks/publish.yaml | 29 +++++++------- 2 files changed, 59 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/ewyles-testing-arm.yaml diff --git a/.github/workflows/ewyles-testing-arm.yaml b/.github/workflows/ewyles-testing-arm.yaml new file mode 100644 index 00000000..073b2468 --- /dev/null +++ b/.github/workflows/ewyles-testing-arm.yaml @@ -0,0 +1,46 @@ +name: Temp Workflow to test Publish + +on: + push: + branches: + - 'ewyles/pre-release-testing' + +permissions: + contents: read + +jobs: + publish-package: + needs: tag-new-version + if: ${{ needs.tag-new-version.outputs.release_created == 'true' }} + runs-on: ubuntu-latest + name: Temp - Publish ${{ matrix.flavor }} ${{ matrix.architecture }} + strategy: + matrix: + flavor: [upstream, registry1] + architecture: [amd64] + exclude: + - flavor: registry1 + architecture: arm64 + + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + + - name: Environment setup + uses: defenseunicorns/uds-common/.github/actions/setup@11e591f2ec7d158923d973c85097ce28a5f55db4 # v0.4.5 + 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/publish.yaml package --set FLAVOR=${{ matrix.flavor }} + + - name: Save logs + if: always() + uses: defenseunicorns/uds-common/.github/actions/save-logs@11e591f2ec7d158923d973c85097ce28a5f55db4 # v0.4.5 + with: + suffix: ${{ matrix.flavor }}-${{ matrix.architecture }}-${{ github.run_id }}-${{ github.run_attempt }} diff --git a/tasks/publish.yaml b/tasks/publish.yaml index 1c7a96f8..c791efe2 100644 --- a/tasks/publish.yaml +++ b/tasks/publish.yaml @@ -2,8 +2,9 @@ includes: - dependencies: ./dependencies.yaml - test: ./test.yaml - create: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.4.5/tasks/create.yaml - - deploy: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.4.5/tasks/deploy.yaml - - publish: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.4.5/tasks/publish.yaml + #- deploy: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.4.5/tasks/deploy.yaml +# - publish: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.4.5/tasks/publish.yaml +# - publish: ../../uds-common/tasks/publish.yaml - setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.4.5/tasks/setup.yaml tasks: @@ -14,18 +15,14 @@ tasks: - task: create:package - task: dependencies:create - task: create:test-bundle - - task: setup:k3d-test-cluster - - task: deploy:test-bundle - - task: setup:create-doug-user - - task: test:all + # - task: setup:k3d-test-cluster + # - task: deploy:test-bundle + # - task: setup:create-doug-user + # - task: test:all - - description: Publish the package - # TODO: using this echo command for local testing - cmd: echo "Would publish ${FLAVOR}-${UDS_ARCH}" - # TODO: need to make publish take the arch as input - - # task: publish:package - # with: - # # x-release-please-start-version - # version: "9.8.0-uds.0" - # # x-release-please-end + # - description: Publish the package + # task: publish:package + # with: + # # x-release-please-start-version + # version: "9.8.0-uds.0" + # # x-release-please-end