mirror of
https://github.com/e107inc/e107.git
synced 2025-03-13 17:09:46 +01:00
podman
This commit is contained in:
parent
441ee75e41
commit
176f8eb325
12
.github/workflows/test-acceptance.yml
vendored
12
.github/workflows/test-acceptance.yml
vendored
@ -11,12 +11,9 @@ jobs:
|
|||||||
- image: docker.io/jrei/systemd-ubuntu:22.04
|
- image: docker.io/jrei/systemd-ubuntu:22.04
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Replace Docker with Podman Rootless
|
- name: Replace Docker with Podman
|
||||||
run: |
|
run: sudo apt-get -o Dpkg::Options::="--force-overwrite" install -y podman-docker
|
||||||
sudo apt-get -o Dpkg::Options::="--force-overwrite" install -y podman
|
|
||||||
echo -e "export XDG_RUNTIME_DIR=/tmp/${RUNNER_TEMP}" >> $GITHUB_ENV
|
|
||||||
echo -e "export XDG_DATA_HOME=/tmp/${RUNNER_TEMP}" >> $GITHUB_ENV
|
|
||||||
echo -e "export CONTAINERS_STORAGE_CONF=/tmp/${RUNNER_TEMP}/storage.conf" >> $GITHUB_ENV
|
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: "^1.19"
|
go-version: "^1.19"
|
||||||
@ -25,7 +22,8 @@ jobs:
|
|||||||
run: CGO_ENABLED=0 go build -ldflags "-s -w" -o ./salt-bootstrap salt-bootstrap.go
|
run: CGO_ENABLED=0 go build -ldflags "-s -w" -o ./salt-bootstrap salt-bootstrap.go
|
||||||
working-directory: ./e107_tests/lib/ci/salt/
|
working-directory: ./e107_tests/lib/ci/salt/
|
||||||
- name: Launch test container
|
- name: Launch test container
|
||||||
run: docker run -d -it --name target -v .:/app/ ${{ matrix.operating_system.image }}
|
run: docker run -d -it --rm --name target -v .:/app/ ${{ matrix.operating_system.image }}
|
||||||
|
|
||||||
- name: Install SaltStack
|
- name: Install SaltStack
|
||||||
run: docker exec target /app/e107_tests/lib/ci/salt/salt-bootstrap onedir
|
run: docker exec target /app/e107_tests/lib/ci/salt/salt-bootstrap onedir
|
||||||
- name: Apply Salt state
|
- name: Apply Salt state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user