Skip to content

Commit

Permalink
trying to run something on arm without going through a full release
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwyles committed Jun 5, 2024
1 parent 73b069c commit 9381629
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 16 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ewyles-testing-arm.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
29 changes: 13 additions & 16 deletions tasks/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 9381629

Please sign in to comment.