diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 6147d3e..c8560fd 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -14,9 +14,23 @@ env: IMAGE_NAME: ingv/fdsnws-fetcher jobs: + test_publiccode: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Run publiccode parser + run: | + docker run -i --rm italia/publiccode-parser-go /dev/stdin < publiccode.yml + build_and_push_to_registry: name: Build and Push Docker image to Docker Hub runs-on: ubuntu-latest + needs: test_publiccode steps: - name: Checkout code the repo uses: actions/checkout@v4 @@ -80,16 +94,3 @@ jobs: destination_container_repo: ${{ env.IMAGE_NAME }} readme_file: 'README.md' short_description: 'Docker image used to retrieve date from FDSNWS nodes.' - - test-publiccode: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Run publiccode parser - run: | - docker run -i --rm italia/publiccode-parser-go /dev/stdin < publiccode.yml