Verified Commit 2b23d9e9 authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Feat: CI: test container image (#29)

parent 75d41bb8
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -39,7 +39,21 @@ container:
  stage: build
  script:
    # Build image
    - podman build .
    - podman build . -t onionmine

    # Test
    - podman run --mount type=bind,src=pools,target=/app/pools onionmine config example.net
    - cp pools/example.org/pool.conf pools/example.net
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine add-filter example.net test
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine mine example.net
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine select-candidate example.net 0
    #-podman run --mount type=bin,src=pools,taget=/app/pools onionmine test-candidate example.net 0
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine generate-selected-cert example.net
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine unwrap-selected-tls-key example.net
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine onion-csr example.net 0123456789012345678901234567890123456789
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine pool-info example.net
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine wipe-pool-secrets example.net --force
    - podman run --mount type=bin,src=pools,taget=/app/pools onionmine wipe-pool example.net --force

release:
  image: registry.gitlab.com/gitlab-org/release-cli:latest