-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (49 loc) · 2.22 KB
/
ewyles-testing-arm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Temp Workflow to test a Fake Publish
on:
push:
branches:
- 'ewyles/pre-release-testing'
env:
UDS_CLI_VERSION: v0.11.0
permissions:
contents: read
jobs:
fake-publish:
runs-on: ${{ matrix.architecture == 'arm64' && 'uds-ubuntu-arm64-4-core' || 'ubuntu-latest' }}
name: Temp - Fake Publish ${{ matrix.flavor }} ${{ matrix.architecture }}
strategy:
matrix:
flavor: [upstream, registry1]
architecture: [amd64, arm64]
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
uses: defenseunicorns/uds-common/.github/actions/setup@ewyles/publish-arch
with:
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }}
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }}
ghToken: ${{ secrets.GITHUB_TOKEN }}
# - name: Install k3d
# if: ${{ runner.arch == 'ARM64' }}
# shell: bash
# # renovate: datasource=github-tags depName=k3d-io/k3d versioning=semver
# run: curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | TAG=v5.6.3 bash
# - name: Install UDS CLI
# if: ${{ runner.arch == 'ARM64' }}
# shell: bash
# # renovate: datasource=github-tags depName=defenseunicorns/uds-cli versioning=semver
# run: curl -o /usr/local/bin/uds -L https://github.com/defenseunicorns/uds-cli/releases/download/${{ env.UDS_CLI_VERSION }}/uds-cli_${{ env.UDS_CLI_VERSION }}_Linux_arm64 && chmod +x /usr/local/bin/uds
- name: Publish Package
run: UDS_ARCHITECTURE=${{ matrix.architecture }} uds run -f tasks/fake-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 }}