Verified Commit 5878089b authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Fix: CI: disable container testing for now, reorganize jobs (#29)

parent 2b23d9e9
Loading
Loading
Loading
Loading
+24 −22
Original line number Diff line number Diff line
@@ -6,7 +6,30 @@ variables:
  GIT_SUBMODULE_STRATEGY: recursive
  GIT_SUBMODULE_DEPTH: 1

test:
container:
  image: containers.torproject.org/tpo/tpa/base-images/podman:bookworm
  stage: build
  #variables:
  #  PODMAN_RUN: podman run --mount type=bind,src=pools,target=/app/pools
  script:
    # Build image
    - podman build . -t onionmine

    ## Test
    #- $PODMAN_RUN onionmine config example.net
    #- cp pools/example.org/pool.conf pools/example.net
    #- $PODMAN_RUN onionmine add-filter example.net test
    #- $PODMAN_RUN onionmine mine example.net
    #- $PODMAN_RUN onionmine select-candidate example.net 0
    ##-$PODMAN_RUN onionmine test-candidate example.net 0
    #- $PODMAN_RUN onionmine generate-selected-cert example.net
    #- $PODMAN_RUN onionmine unwrap-selected-tls-key example.net
    #- $PODMAN_RUN onionmine onion-csr example.net 0123456789012345678901234567890123456789
    #- $PODMAN_RUN onionmine pool-info example.net
    #- $PODMAN_RUN onionmine wipe-pool-secrets example.net --force
    #- $PODMAN_RUN onionmine wipe-pool example.net --force

test-repository:
  image: containers.torproject.org/tpo/tpa/base-images/debian:stable
  stage: test
  script:
@@ -34,27 +57,6 @@ test:
    - ./onionmine wipe-pool-secrets example.net --force
    - ./onionmine wipe-pool example.net --force

container:
  image: containers.torproject.org/tpo/tpa/base-images/podman:bookworm
  stage: build
  script:
    # Build image
    - 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
  stage: .post