Skip to content

Commit

Permalink
Add test_publiccode job and dependencies to build job
Browse files Browse the repository at this point in the history
  • Loading branch information
vlauciani committed Sep 13, 2024
1 parent d382777 commit 5c5f266
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 5c5f266

Please sign in to comment.