Skip to content

Test GHCR Write

Test GHCR Write #225

Workflow file for this run

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