-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (41 loc) · 1.23 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
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@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.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: ./.github/actions/save-logs