-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (43 loc) · 1.35 KB
/
nightly-ghcr.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
name: Test GHCR Write
on:
schedule:
- cron: '0 7 * * *' ## Every day at 0700 UTC
workflow_dispatch: ## Give us the ability to run this manually
permissions:
contents: read
# Abort prior jobs in the same workflow / PR
concurrency:
group: e2e-ghcr-write-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup golang
uses: ./.github/actions/golang
- name: Install UDS CLI
uses: ./.github/actions/install-uds-cli
- name: Build UDS-CLI binary
run: uds run build-cli-linux-amd
- name: Setup K3d
uses: ./.github/actions/k3d
- name: Login to GHCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run e2e tests
run: |
build/uds run test:e2e-ghcr
env:
GITHUB_TOKEN: secrets.GITHUB_TOKEN
- name: Save logs
if: always()
uses: defenseunicorns/uds-common/.github/actions/save-logs@ea9db8ab9bfc4a5d87acd7d1af385aa8e44206d3 # v0.13.0
with:
suffix: nightly-ghcr