Commit 1e4ff18c authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: skip ok tests on tag

parent 000b4cb0
Loading
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -79,11 +79,6 @@ variables:
      alias: "aws-auth-provider"
  before_script:
    - !reference [.test-scripts]
  rules:
    # exclude tags
    - if: $CI_COMMIT_TAG
      when: never
    - when: always

test-health:
  extends: .test-base
@@ -146,6 +141,9 @@ test-token-succeeds:
      response_status=$(curl -s -o resp.txt -w "%{http_code}" -H "Authorization: Basic $ecr_token" "https://$AWS_WORKING_ACCOUNT.dkr.ecr.$AWS_WORKING_REGION.amazonaws.com/v2/_catalog")
    - assert_eq "200" $response_status
  rules:
    # exclude tags
    - if: $CI_COMMIT_TAG
      when: never
    - if: $CI_SERVER_HOST != "gitlab.com"
      when: never
    - if: '$AWS_WORKING_ACCOUNT && $AWS_WORKING_REGION && $AWS_WORKING_OIDC_ROLE_ARN'
 No newline at end of file