fix: don't run sudo in steps if user is root #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test with systemd containers | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
inputs: | |
jobs: | |
ubuntu-test: | |
name: Run remote config test with Ubuntu systemd container | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build image | |
run: podman image build -t fup:ubuntu -f tests/image/Dockerfile.ubuntu . | |
- name: Provision in the image | |
run: | | |
container=$(podman container run --name ubuntu --rm -d fup:ubuntu) | |
podman container exec -ti $container bash -c 'curl -L fcd.url.lol/u | bash -' |