瀏覽代碼

Revert "ci: use docker-gen main on dev branch tests"

This reverts commit b6e9cdc065a19ce7e7cb0dcf2c11cd7c9fe1d063.
Nicolas Duchon 3 年之前
父節點
當前提交
01446472dd
共有 2 個文件被更改,包括 4 次插入22 次删除
  1. 4 16
      .github/workflows/test.yml
  2. 0 6
      Makefile

+ 4 - 16
.github/workflows/test.yml

@@ -3,16 +3,13 @@ name: Tests
 on:
   workflow_dispatch:
   push:
-    branches:
-      - main
-      - dev
     paths-ignore:
-      - 'LICENSE'
-      - '**.md'
+    - 'LICENSE'
+    - '**.md'
   pull_request:
     paths-ignore:
-      - 'LICENSE'
-      - '**.md'
+    - 'LICENSE'
+    - '**.md'
 
 jobs:
   unit:
@@ -42,15 +39,6 @@ jobs:
 
       - name: Build Docker nginx proxy test image
         run: make build-nginx-proxy-test-${{ matrix.base_docker_image }}
-        if: |
-          ( github.event_name == 'push' && github.ref != 'refs/heads/dev' ) ||
-          ( github.event_name == 'pull_request' && github.base_ref != 'dev' )
-
-      - name: Build Docker nginx proxy dev test image
-        run: make build-nginx-proxy-test-${{ matrix.base_docker_image }}-dev
-        if: |
-          ( github.event_name == 'push' && github.ref == 'refs/heads/dev' ) ||
-          ( github.event_name == 'pull_request' && github.base_ref == 'dev' )
 
       - name: Run tests
         run: pytest

+ 0 - 6
Makefile

@@ -11,12 +11,6 @@ build-nginx-proxy-test-debian:
 build-nginx-proxy-test-alpine:
 	docker build --build-arg NGINX_PROXY_VERSION="test" -f Dockerfile.alpine -t nginxproxy/nginx-proxy:test .
 
-build-nginx-proxy-test-debian-dev:
-	docker build --build-arg DOCKER_GEN_VERSION=main -t nginxproxy/nginx-proxy:test .
-
-build-nginx-proxy-test-alpine-dev:
-	docker build -f Dockerfile.alpine --build-arg DOCKER_GEN_VERSION=main -t nginxproxy/nginx-proxy:test .
-
 test-debian: build-webserver build-nginx-proxy-test-debian
 	test/pytest.sh