Skip to content

Commit

Permalink
Merge pull request #651 from OWASP/feat-631/podman
Browse files Browse the repository at this point in the history
  • Loading branch information
commjoen authored Mar 1, 2023
2 parents db71d08 + 53a21c5 commit 7808214
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/container-alts-test.yml
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

0 comments on commit 7808214

Please sign in to comment.