-
-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #651 from OWASP/feat-631/podman
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Test container on podman and Colima | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test-podman: | ||
name: Test with podman | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: run container | ||
run: | | ||
podman run -dt -p 8080:8080 docker.io/jeroenwillemsen/wrongsecrets:latest-no-vault && \ | ||
echo "wait 20 seconds for container to come up" && sleep 20 && \ | ||
curl localhost:8080 | ||
test-colima: | ||
name: Test with Colima | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: douglascamata/setup-docker-macos-action@v1-alpha | ||
- name: setup colima | ||
run: | | ||
echo "Colima version: ${{ steps.docker.outputs.colima-version }}" | ||
- name: test if container comes up | ||
run: | | ||
docker run -d -p 8080:8080 jeroenwillemsen/wrongsecrets:latest-no-vault && \ | ||
echo "wait 20 seconds for container to come up" && sleep 20 && \ | ||
curl localhost:8080 |