-
-
Notifications
You must be signed in to change notification settings - Fork 371
41 lines (38 loc) · 1.25 KB
/
container-alts-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Test container on podman and Colima
on:
push:
branches:
- master
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
test-podman:
name: Test with podman
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v4
# when https://github.com/douglascamata/setup-docker-macos-action/pull/19 is merged and tagged, move to new version:
- uses: douglascamata/[email protected]
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
- 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 40 seconds for container to come up" && sleep 40 && \
curl localhost:8080