Skip to content

fix(customer-bundle): fall back to sudo docker #40

fix(customer-bundle): fall back to sudo docker

fix(customer-bundle): fall back to sudo docker #40

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
go:
runs-on: self-hosted
steps:
- name: Reset workspace ownership
run: |
docker run --rm -v "$GITHUB_WORKSPACE:/ws" alpine \
chown -R $(id -u):$(id -g) /ws 2>/dev/null || true
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- run: go test ./...
- name: Clean up runner workspace
if: always()
run: |
set +e
docker run --rm -v "$GITHUB_WORKSPACE:/ws" alpine \
chown -R "$(id -u):$(id -g)" /ws 2>/dev/null || true
find "$GITHUB_WORKSPACE" -mindepth 1 -delete 2>/dev/null || true
exit 0
customer-bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: bash deploy/scripts/test-customer-bundle.sh