Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Dec 19, 2023
1 parent 8094a3b commit 498b216
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
check-before-build:
runs-on: ubuntu-latest
if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/build_test')

permissions:
pull-requests: write
steps:
Expand Down Expand Up @@ -139,11 +138,18 @@ jobs:
cd src/main/webui
yarn install && yarn yarn:frzinstall
cd -
- name: Install podman v4
run: sudo apt -y install podman-docker
- name: Emulate docker with podman
run: |
ln -s /usr/bin/docker /usr/bin/podman
mkdir -p $HOME/.bin
cat <(echo '#!/usr/bin/env bash') <(echo 'exec podman "$@"') > $HOME/.bin/docker
chmod +x $HOME/.bin/docker
echo "PATH=$HOME/.bin:$PATH" >> "$GITHUB_ENV"
- name: Set up testcontainers for podman
run: echo ryuk.container.privileged=true > ~/.testcontainers.properties
- name: Start Podman API
run: systemctl --user enable --now podman.socket
- name: Set DOCKER_HOST environment variable
run: echo "DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock" >> "$GITHUB_ENV"
- name: Build application
Expand Down

0 comments on commit 498b216

Please sign in to comment.